Skip to content

Commit df20135

Browse files
committed
Add empty DB migration script for tests
1 parent 9592f98 commit df20135

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Scripts/MigrateEmptyDB.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
docker stop migrateempty
2+
docker run -d --rm --name migrateempty -p 5432:5432 reloni/todo-postgres:latest
3+
4+
export POSTGRES_USER=postgres
5+
export POSTGRES_PASSWORD=postgres
6+
export POSTGRES_HOST=localhost
7+
export POSTGRES_PORT=5432
8+
export POSTGRES_DB=postgres
9+
export MIGRATE_LOG=$PWD/migrate.log
10+
11+
sleep 7
12+
13+
sh MigrateDB.sh

0 commit comments

Comments
 (0)