Skip to content

Commit

Permalink
migration changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sleepyyapril committed Dec 22, 2024
1 parent 0a9ebf0 commit cb7df67
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ public partial class UpstreamMerge : Migration
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "ProfileLoadout");
migrationBuilder.Sql("DROP TABLE IF EXISTS ProileLoadouts;");

migrationBuilder.RenameColumn(
name: "hwid_type",
Expand Down
4 changes: 2 additions & 2 deletions Content.Server.Database/add-migration.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ if ($name -eq "")
exit
}

dotnet ef migrations add --context SqliteServerDbContext -o Migrations/Sqlite $name
dotnet ef migrations add --context PostgresServerDbContext -o Migrations/Postgres $name
dotnet ef migrations add --context SqliteServerDbContext --output-dir Migrations/Sqlite $name
dotnet ef migrations add --context PostgresServerDbContext --output-dir Migrations/Postgres $name
4 changes: 2 additions & 2 deletions Content.Server.Database/remove-migration.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ if ($name -eq "")
exit
}

dotnet ef migrations remove --context SqliteServerDbContext -o Migrations/Sqlite $name
dotnet ef migrations remove --context PostgresServerDbContext -o Migrations/Postgres $name
dotnet ef migrations remove --context SqliteServerDbContext $name
dotnet ef migrations remove --context PostgresServerDbContext $name

0 comments on commit cb7df67

Please sign in to comment.