mirror of
https://github.com/allaunthefox/SilverSight.git
synced 2026-07-31 01:25:21 +00:00
- Root cause: search_path=auth,public caused AppFloyo unqualified CREATE TABLE statements to land in auth schema (shadowing public) - Fix: APPFLOWY_DATABASE_URL with options=-c%20search_path=public - Ran all 144 SQLx migrations from binary (clean state + fragment type pre-cleanup) - GoTrue/AppFloyo user sync: created af_user record for admin - Port 8000 freed from ii-agent (moved to 8001 permanently) - Deployment receipt updated: signatures/appflowy_deployment_status.json Services on neon-64gb: GoTrue :9999 ✅ auth working (admin@researchstack.info / admin123) AppFloyo :8000 ✅ REST API operational Authentik :30001 ✅ SSO admin created ii-agent :8001 ✅ restarted
12 lines
664 B
Python
12 lines
664 B
Python
import subprocess, os
|
|
DB = ['/home/allaun/.nix-profile/bin/psql', '-h', 'localhost', '-U', 'postgres', '-d', 'appflowy']
|
|
ENV = {'PGPASSWORD': 'postgres', 'PATH': '/home/allaun/.nix-profile/bin:/usr/bin:/bin'}
|
|
|
|
r = subprocess.run(DB + ['-t', '-A', '-c', "SELECT tablename FROM pg_tables WHERE schemaname = 'public'"],
|
|
capture_output=True, timeout=10, env=ENV)
|
|
for tbl in r.stdout.decode().strip().split('\n'):
|
|
if tbl.strip():
|
|
subprocess.run(DB + ['-c', f'DROP TABLE IF EXISTS public.{tbl.strip()} CASCADE'],
|
|
capture_output=True, timeout=30, env=ENV)
|
|
print(f'Dropped public.{tbl.strip()}')
|
|
print('Done')
|