chore(rls): 新增 manual script gate 與 canary wave1
Some checks failed
Code Review / ai-code-review (push) Successful in 10s
CD Pipeline / tests (push) Successful in 1m5s
CD Pipeline / build-and-deploy (push) Failing after 10m6s
CD Pipeline / post-deploy-checks (push) Has been skipped

This commit is contained in:
Your Name
2026-05-12 20:23:22 +08:00
parent be8ddf4599
commit 8c4dc7a5a8
15 changed files with 562 additions and 9 deletions

View File

@@ -1,10 +1,15 @@
#!/usr/bin/env python3
"""同步 dev DB — 補齊 prod 有但 dev 沒有的表"""
import asyncio
import os
import sys
from sqlalchemy.ext.asyncio import create_async_engine
from sqlalchemy import text
DEV_URL = "postgresql+asyncpg://awoooi:awoooi_prod_2026@192.168.0.188:5432/awoooi_dev"
DEV_URL = os.environ.get("DEV_DATABASE_URL")
if not DEV_URL:
print("ERROR: DEV_DATABASE_URL not set", file=sys.stderr)
sys.exit(1)
MIGRATIONS = [
("auto_repair_executions", """