fp/services/migrations-data/migrations
CJ_Clippy 5e83742341
ci / build (push) Failing after 3s Details
create migrations-data
2024-12-16 12:39:23 -08:00
..
0001_from-strapi-to-postgrest-mk2.sql create migrations-data 2024-12-16 12:39:23 -08:00
0002_relate-vtubers-to-vods.sql create migrations-data 2024-12-16 12:39:23 -08:00
0003_relate-mux_asset_id-to-vods.sql create migrations-data 2024-12-16 12:39:23 -08:00
0004_relate-thumbnails-to-vods.sql create migrations-data 2024-12-16 12:39:23 -08:00
0005_rename-vtuber_num-to-vtuber_id.sql create migrations-data 2024-12-16 12:39:23 -08:00
0006_relate-vods-to-streams.sql create migrations-data 2024-12-16 12:39:23 -08:00
README.md create migrations-data 2024-12-16 12:39:23 -08:00

README.md

Futureporn data migrations

This directory is for data migrations ONLY. For schema migrations, see ./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