Skip to content

Commit

Permalink
update varchar(max)
Browse files Browse the repository at this point in the history
  • Loading branch information
f0x4c1d committed Aug 6, 2024
1 parent e613f79 commit dfad5e9
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 @@ -17,7 +17,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(max)", nullable: true),
Description = table.Column<string>(type: "varchar", nullable: true),
CreatedDate = table.Column<DateTime>(type: "datetime2", 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 @@ -34,7 +34,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
.HasColumnType("datetime2");

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

b.HasKey("ID");

Expand Down

0 comments on commit dfad5e9

Please sign in to comment.