add events table

This commit is contained in:
2025-05-29 13:57:28 +02:00
parent 5ecb8c956c
commit 3174f8fa5b
8 changed files with 258 additions and 1 deletions

View File

@@ -29,6 +29,20 @@ flask db init
flask db migrate -m "Initial migration"
flask db upgrade
# Create events table
echo "Creating events table..."
python3 -c "
from migrations.add_events_table import upgrade
from app import create_app
app = create_app()
with app.app_context():
try:
upgrade()
print('Events table created successfully')
except Exception as e:
print(f'Error creating events table: {e}')
"
# Create default site settings if they don't exist
echo "Creating default site settings..."
python3 -c "