@@ -24,7 +24,7 @@ protected override void Up(MigrationBuilder migrationBuilder)
2424 } ) ;
2525
2626 migrationBuilder . CreateTable (
27- name : "TodoItemCollection " ,
27+ name : "TodoItemCollections " ,
2828 columns : table => new
2929 {
3030 Id = table . Column < Guid > ( nullable : false ) ,
@@ -33,9 +33,9 @@ protected override void Up(MigrationBuilder migrationBuilder)
3333 } ,
3434 constraints : table =>
3535 {
36- table . PrimaryKey ( "PK_TodoItemCollection " , x => x . Id ) ;
36+ table . PrimaryKey ( "PK_TodoItemCollections " , x => x . Id ) ;
3737 table . ForeignKey (
38- name : "FK_TodoItemCollection_People_OwnerId " ,
38+ name : "FK_TodoItemCollections_People_OwnerId " ,
3939 column : x => x . OwnerId ,
4040 principalTable : "People" ,
4141 principalColumn : "Id" ,
@@ -57,9 +57,9 @@ protected override void Up(MigrationBuilder migrationBuilder)
5757 {
5858 table . PrimaryKey ( "PK_TodoItems" , x => x . Id ) ;
5959 table . ForeignKey (
60- name : "FK_TodoItems_TodoItemCollection_CollectionId " ,
60+ name : "FK_TodoItems_TodoItemCollections_CollectionId " ,
6161 column : x => x . CollectionId ,
62- principalTable : "TodoItemCollection " ,
62+ principalTable : "TodoItemCollections " ,
6363 principalColumn : "Id" ,
6464 onDelete : ReferentialAction . Restrict ) ;
6565 table . ForeignKey (
@@ -81,8 +81,8 @@ protected override void Up(MigrationBuilder migrationBuilder)
8181 column : "OwnerId" ) ;
8282
8383 migrationBuilder . CreateIndex (
84- name : "IX_TodoItemCollection_OwnerId " ,
85- table : "TodoItemCollection " ,
84+ name : "IX_TodoItemCollections_OwnerId " ,
85+ table : "TodoItemCollections " ,
8686 column : "OwnerId" ) ;
8787 }
8888
@@ -92,7 +92,7 @@ protected override void Down(MigrationBuilder migrationBuilder)
9292 name : "TodoItems" ) ;
9393
9494 migrationBuilder . DropTable (
95- name : "TodoItemCollection " ) ;
95+ name : "TodoItemCollections " ) ;
9696
9797 migrationBuilder . DropTable (
9898 name : "People" ) ;
0 commit comments