mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-03-21 11:35:14 +00:00
14 lines
589 B
Bash
Executable File
14 lines
589 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Run from project root with the name of the new migration as a PascalCase parameter
|
|
# Migrations need to be tabified, have ArgumentNullException added, doc comments created, and manually reviewed
|
|
|
|
pushd src/Tgstation.Server.Host
|
|
dotnet tool restore
|
|
dotnet ef migrations add "MS$1" --context SqlServerDatabaseContext
|
|
dotnet ef migrations add "MY$1" --context MySqlDatabaseContext
|
|
dotnet ef migrations add "PG$1" --context PostgresSqlDatabaseContext
|
|
dotnet ef migrations add "SL$1" --context SqliteDatabaseContext
|
|
rm -f ./--applicationName # No idea why this file appears
|
|
popd
|