CJ_Clippy
140883a69c
ci / build (push) Failing after 1s
Details
|
||
---|---|---|
.. | ||
.gitignore | ||
2024-10-07-from-strapi-to-postgrest.sql | ||
2024-10-25-from-strapi-to-postgrest-mk2.sql | ||
2024-11-21-relate-vtubers-to-vods.sql | ||
2024-11-22-relate-mux_asset_id-to-vods.sql | ||
2024-11-22-relate-thumbnails-to-vods.sql | ||
2024-11-22-rename-vtuber_num-to-vtuber_id.sql | ||
README.md | ||
a.migration.sh | ||
scratch.sql |
README.md
Futureporn data migrations
This directory is for data migrations ONLY. For schema migrations, see ../services/migrations node package
Usage
$ a.migration.sh <migration_sql_file>
Real-world Example
Here we use dotenvx to load environment variables (specifically POSTGRES_PASSWORD is needed) and run the migration inside the postgres pod
dotenvx run -f ./.env.development -- bash -x ./scripts/data-migrations/a.migration.sh ./scripts/data-migrations/2024-10-07-transfer-streams.sql