From 1c74706736c8fa6b2ba1f97bfce2e4c49f6ea3cb Mon Sep 17 00:00:00 2001 From: Kobe Date: Sat, 31 May 2025 23:12:35 +0200 Subject: [PATCH] Update entrypoint.sh --- entrypoint.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/entrypoint.sh b/entrypoint.sh index fcf9b88..2e6b99b 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -43,6 +43,20 @@ with app.app_context(): print(f'Error creating events table: {e}') " +# Create notifs table +echo "Creating notifs table..." +python3 -c " +from migrations.add_notifs_table import upgrade +from app import create_app +app = create_app() +with app.app_context(): + try: + upgrade() + print('Notifs table created successfully') + except Exception as e: + print(f'Error creating notifs table: {e}') +" + # Create default site settings if they don't exist echo "Creating default site settings..." python3 -c "