Skip to content

Commit

Permalink
update timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
f0x4c1d committed Aug 6, 2024
1 parent 1dc0c1d commit 12651c1
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: "timestamp", nullable: false)
CreatedDate = table.Column<DateTime>(type: "timestamp(6)", 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("timestamp");
.HasColumnType("timestamp(6)");

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

0 comments on commit 12651c1

Please sign in to comment.