Generate an ordinary migration from the drift between declarative reference/seed data (//ptah:schema:data) and a live database. It applies no safety/risk gating of its own (a deferred follow-up); review the generated file before applying. Usage: ptah migrations data [flags] Flags: --allow-destructive Allow generating a data migration that updates or deletes existing rows [env: PTAH_ALLOW_DESTRUCTIVE] --allow-prod Allow generating a data migration that modifies a protected table [env: PTAH_ALLOW_PROD] --connect-timeout string Maximum time to wait when establishing the initial database connection (for example 5s or 1m). Use 0 to disable the timeout. [env: PTAH_CONNECT_TIMEOUT] (default "10s") --db-url string Live database URL to diff the desired data against (required) [env: PTAH_DB_URL] --description string Migration description used in the file name [env: PTAH_DESCRIPTION] (default "data") --dry-run Print the migration SQL instead of writing files [env: PTAH_DRY_RUN] -h, --help help for data --migrations-dir string Directory the generated migration pair is written to [env: PTAH_MIGRATIONS_DIR] (default "./migrations") --protected-table stringArray Managed table that requires --allow-prod to modify; repeat to add more [env: PTAH_PROTECTED_TABLE] --root-dir string Directory of Go sources carrying //ptah:schema:data annotations (required) [env: PTAH_ROOT_DIR] --version string Migration version; defaults to one above the newest migration [env: PTAH_VERSION]