Update entrypoint.sh
This commit is contained in:
@@ -22,11 +22,8 @@ until PGPASSWORD=$POSTGRES_PASSWORD psql -h db -U $POSTGRES_USER -d $POSTGRES_DB
|
|||||||
done
|
done
|
||||||
echo "PostgreSQL is up - executing command"
|
echo "PostgreSQL is up - executing command"
|
||||||
|
|
||||||
# Clean up existing migrations and initialize fresh
|
# Run migrations
|
||||||
echo "Cleaning up and initializing fresh migrations..."
|
echo "Running database migrations..."
|
||||||
rm -rf migrations/versions/*
|
|
||||||
flask db init
|
|
||||||
flask db migrate -m "Initial migration"
|
|
||||||
flask db upgrade
|
flask db upgrade
|
||||||
|
|
||||||
# Create events table
|
# Create events table
|
||||||
|
|||||||
Reference in New Issue
Block a user