Remove database schema updates and migrations; simplify entrypoint script and related commands

This commit is contained in:
Arunavo Ray
2025-05-19 09:02:39 +05:30
parent 8a9acd4bf7
commit e1faea72d5
5 changed files with 5 additions and 163 deletions

View File

@@ -124,17 +124,8 @@ else
node dist/scripts/manage-db.js fix
fi
# Update the database schema
echo "Updating database schema..."
if [ -f "dist/scripts/manage-db.js" ]; then
node dist/scripts/manage-db.js update-schema
fi
# Run migrations
echo "Running database migrations..."
if [ -f "dist/scripts/run-migrations.js" ]; then
node dist/scripts/run-migrations.js
fi
# Since the application is not used by anyone yet, we've removed the schema updates and migrations
echo "Database already exists, no migrations needed."
fi
# Start the application