Skip to content

Commit b6c9825

Browse files
updated database.sh to be root directory dynamic
1 parent e261737 commit b6c9825

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

database.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,14 @@ migrate_upgrade ()
1111
pipenv run upgrade
1212
}
1313

14+
dir=$(pwd)
1415

15-
if [ ! -d /workspace/react-flask-hello/migrations ]
16+
if [ ! -d $dir/migrations ]
1617
then
1718
echo 'creating migration'
1819
creating_migration
1920
else
21+
echo 'migrations already created'
22+
echo 'updating migrations'
2023
migrate_upgrade
2124
fi

0 commit comments

Comments
 (0)