Skip to content

Commit

Permalink
rollback to timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
f0x4c1d committed Aug 8, 2024
1 parent b220311 commit 2d40749
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Migrations/20240621154946_InitialCreate.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Migrations/20240621154946_InitialCreate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ protected override void Up(MigrationBuilder migrationBuilder)
ID = table.Column<int>(type: "int", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
Description = table.Column<string>(type: "varchar", nullable: true),
CreatedDate = table.Column<DateTime>(type: "datetime2", nullable: false)
CreatedDate = table.Column<DateTime>(type: "timestamp", nullable: false)
},
constraints: table =>
{
Expand Down
2 changes: 1 addition & 1 deletion Migrations/MyDatabaseContextModelSnapshot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"));

b.Property<DateTime>("CreatedDate")
.HasColumnType("datetime2");
.HasColumnType("timestamp");

b.Property<string>("Description")
.HasColumnType("varchar");
Expand Down

0 comments on commit 2d40749

Please sign in to comment.