geo detection
This commit is contained in:
0
bin/apply_direct_sql.sh
Executable file → Normal file
0
bin/apply_direct_sql.sh
Executable file → Normal file
0
bin/apply_migrations.sh
Executable file → Normal file
0
bin/apply_migrations.sh
Executable file → Normal file
0
bin/backup_db.sh
Executable file → Normal file
0
bin/backup_db.sh
Executable file → Normal file
0
bin/compile_ts_migrations.sh
Executable file → Normal file
0
bin/compile_ts_migrations.sh
Executable file → Normal file
0
bin/create_consolidated_migration.sh
Executable file → Normal file
0
bin/create_consolidated_migration.sh
Executable file → Normal file
0
bin/create_release.sh
Executable file → Normal file
0
bin/create_release.sh
Executable file → Normal file
0
bin/fix_docker.sh
Executable file → Normal file
0
bin/fix_docker.sh
Executable file → Normal file
0
bin/fix_line_endings.sh
Executable file → Normal file
0
bin/fix_line_endings.sh
Executable file → Normal file
0
bin/fix_permissions.sh
Executable file → Normal file
0
bin/fix_permissions.sh
Executable file → Normal file
20
bin/init_database.sh
Normal file
20
bin/init_database.sh
Normal file
@@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
# init_database.sh - Initialize database with schema
|
||||
|
||||
set -e
|
||||
|
||||
echo "🗄️ Initializing database..."
|
||||
|
||||
# Wait for database to be ready
|
||||
echo "⏳ Waiting for database..."
|
||||
sleep 3
|
||||
|
||||
# Create UUID extension
|
||||
echo "📦 Creating UUID extension..."
|
||||
docker compose exec -T db psql -U postgres -d telegram_tinder_bot -c "CREATE EXTENSION IF NOT EXISTS \"uuid-ossp\";" || true
|
||||
|
||||
# Apply consolidated schema
|
||||
echo "📋 Applying database schema..."
|
||||
docker compose exec -T db psql -U postgres -d telegram_tinder_bot < sql/consolidated.sql
|
||||
|
||||
echo "✅ Database initialized successfully!"
|
||||
0
bin/install_docker.sh
Executable file → Normal file
0
bin/install_docker.sh
Executable file → Normal file
0
bin/install_ubuntu.sh
Executable file → Normal file
0
bin/install_ubuntu.sh
Executable file → Normal file
0
bin/run_full_migration.sh
Executable file → Normal file
0
bin/run_full_migration.sh
Executable file → Normal file
0
bin/run_sql_migrations.sh
Executable file → Normal file
0
bin/run_sql_migrations.sh
Executable file → Normal file
0
bin/setup.sh
Executable file → Normal file
0
bin/setup.sh
Executable file → Normal file
0
bin/start_bot.sh
Executable file → Normal file
0
bin/start_bot.sh
Executable file → Normal file
0
bin/update.sh
Executable file → Normal file
0
bin/update.sh
Executable file → Normal file
Reference in New Issue
Block a user