-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d16ff66
commit c0d9c1f
Showing
12 changed files
with
292 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 0 additions & 50 deletions
50
examples/Demo.DbMigrator/Migrations/20200926034223_InitialCreate.cs
This file was deleted.
Oops, something went wrong.
6 changes: 3 additions & 3 deletions
6
.../20200926034223_InitialCreate.Designer.cs → .../20200927141554_InitialCreate.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
155 changes: 155 additions & 0 deletions
155
examples/Demo.DbMigrator/Migrations/20200927141554_InitialCreate.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,155 @@ | ||
using System; | ||
using Microsoft.EntityFrameworkCore.Migrations; | ||
|
||
namespace Demo.DbMigrator.Migrations | ||
{ | ||
public partial class InitialCreate : Migration | ||
{ | ||
protected override void Up(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.CreateTable( | ||
name: "Order_202009272210", | ||
columns: table => new | ||
{ | ||
Id = table.Column<Guid>(nullable: false), | ||
CreateTime = table.Column<DateTime>(nullable: false) | ||
}, | ||
constraints: table => | ||
{ | ||
table.PrimaryKey("PK_Order_202009272210", x => x.Id); | ||
}); | ||
|
||
migrationBuilder.CreateTable( | ||
name: "Order_202009272211", | ||
columns: table => new | ||
{ | ||
Id = table.Column<Guid>(nullable: false), | ||
CreateTime = table.Column<DateTime>(nullable: false) | ||
}, | ||
constraints: table => | ||
{ | ||
table.PrimaryKey("PK_Order_202009272211", x => x.Id); | ||
}); | ||
|
||
migrationBuilder.CreateTable( | ||
name: "Order_202009272212", | ||
columns: table => new | ||
{ | ||
Id = table.Column<Guid>(nullable: false), | ||
CreateTime = table.Column<DateTime>(nullable: false) | ||
}, | ||
constraints: table => | ||
{ | ||
table.PrimaryKey("PK_Order_202009272212", x => x.Id); | ||
}); | ||
|
||
migrationBuilder.CreateTable( | ||
name: "Order_202009272213", | ||
columns: table => new | ||
{ | ||
Id = table.Column<Guid>(nullable: false), | ||
CreateTime = table.Column<DateTime>(nullable: false) | ||
}, | ||
constraints: table => | ||
{ | ||
table.PrimaryKey("PK_Order_202009272213", x => x.Id); | ||
}); | ||
|
||
migrationBuilder.CreateTable( | ||
name: "Order_202009272214", | ||
columns: table => new | ||
{ | ||
Id = table.Column<Guid>(nullable: false), | ||
CreateTime = table.Column<DateTime>(nullable: false) | ||
}, | ||
constraints: table => | ||
{ | ||
table.PrimaryKey("PK_Order_202009272214", x => x.Id); | ||
}); | ||
|
||
migrationBuilder.CreateTable( | ||
name: "Order_202009272215", | ||
columns: table => new | ||
{ | ||
Id = table.Column<Guid>(nullable: false), | ||
CreateTime = table.Column<DateTime>(nullable: false) | ||
}, | ||
constraints: table => | ||
{ | ||
table.PrimaryKey("PK_Order_202009272215", x => x.Id); | ||
}); | ||
|
||
migrationBuilder.CreateTable( | ||
name: "Order_202009272216", | ||
columns: table => new | ||
{ | ||
Id = table.Column<Guid>(nullable: false), | ||
CreateTime = table.Column<DateTime>(nullable: false) | ||
}, | ||
constraints: table => | ||
{ | ||
table.PrimaryKey("PK_Order_202009272216", x => x.Id); | ||
}); | ||
|
||
migrationBuilder.CreateTable( | ||
name: "Order_202009272217", | ||
columns: table => new | ||
{ | ||
Id = table.Column<Guid>(nullable: false), | ||
CreateTime = table.Column<DateTime>(nullable: false) | ||
}, | ||
constraints: table => | ||
{ | ||
table.PrimaryKey("PK_Order_202009272217", x => x.Id); | ||
}); | ||
|
||
migrationBuilder.CreateTable( | ||
name: "OrderItem", | ||
columns: table => new | ||
{ | ||
Id = table.Column<Guid>(nullable: false), | ||
OrderId = table.Column<Guid>(nullable: false), | ||
Name = table.Column<string>(nullable: true) | ||
}, | ||
constraints: table => | ||
{ | ||
table.PrimaryKey("PK_OrderItem", x => x.Id); | ||
}); | ||
|
||
migrationBuilder.CreateIndex( | ||
name: "IX_OrderItem_OrderId", | ||
table: "OrderItem", | ||
column: "OrderId"); | ||
} | ||
|
||
protected override void Down(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.DropTable( | ||
name: "OrderItem"); | ||
|
||
migrationBuilder.DropTable( | ||
name: "Order_202009272210"); | ||
|
||
migrationBuilder.DropTable( | ||
name: "Order_202009272211"); | ||
|
||
migrationBuilder.DropTable( | ||
name: "Order_202009272212"); | ||
|
||
migrationBuilder.DropTable( | ||
name: "Order_202009272213"); | ||
|
||
migrationBuilder.DropTable( | ||
name: "Order_202009272214"); | ||
|
||
migrationBuilder.DropTable( | ||
name: "Order_202009272215"); | ||
|
||
migrationBuilder.DropTable( | ||
name: "Order_202009272216"); | ||
|
||
migrationBuilder.DropTable( | ||
name: "Order_202009272217"); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.