starpost: rotate secrets and close data leaks

This commit is contained in:
scandalist-trash committed 2026-10-25 03:47:47 -04:00
1 parent 4f70df55dd
commit 22c1906a67
11 files changed
+725 -61

No files matched your search

+1 -1
View File
@@ -52,8 +52,8 @@ def migrate():
"""
)
cursor.execute("ALTER TABLE promo_codes ALTER COLUMN amount SET DEFAULT 100")
cursor.execute("ALTER TABLE promo_codes ADD COLUMN IF NOT EXISTS credited_at TIMESTAMPTZ")
cursor.execute("ALTER TABLE users ALTER COLUMN balance SET DEFAULT 100")
cursor.execute("ALTER TABLE promo_codes DROP COLUMN IF EXISTS credited_at")
cursor.execute("ALTER TABLE promo_codes DROP COLUMN IF EXISTS invalidated_at")
cursor.execute("ALTER TABLE promo_codes DROP COLUMN IF EXISTS created_at")
cursor.execute("CREATE INDEX IF NOT EXISTS orders_buyer_idx ON orders(buyer_id, id DESC)")