You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 28, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: scripts/database/migrate-and-seed.sh
+1-2Lines changed: 1 addition & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -4,10 +4,9 @@ set -e
4
4
# Drop and recreate database for fresh start
5
5
echo"Checking if database exists..."
6
6
/opt/mssql-tools/bin/sqlcmd -S db -U "$DATABASE_USER" -P "$DATABASE_PASSWORD" -Q "IF NOT EXISTS (SELECT name FROM sys.databases WHERE name = N'$DATABASE_NAME') CREATE DATABASE $DATABASE_NAME"
7
-
/opt/mssql-tools/bin/sqlcmd -S db -U SA -P "$DATABASE_PASSWORD" -Q "CREATE DATABASE $DATABASE_NAME"
8
7
9
8
# Run migrations
10
9
echo"Running migrations..."
11
-
/opt/mssql-tools/bin/sqlcmd -S db -d "$DATABASE_NAME" -U SA -P "$DATABASE_PASSWORD" -i /database/migration.sql
0 commit comments