fp/scripts/data-migrations
CJ_Clippy 140883a69c
ci / build (push) Failing after 1s Details
dec 2024 progress
2024-12-11 23:23:46 -08:00
..
.gitignore dec 2024 progress 2024-12-11 23:23:46 -08:00
2024-10-07-from-strapi-to-postgrest.sql use supertokens 2024-11-05 11:48:21 -08:00
2024-10-25-from-strapi-to-postgrest-mk2.sql dec 2024 progress 2024-12-11 23:23:46 -08:00
2024-11-21-relate-vtubers-to-vods.sql dec 2024 progress 2024-12-11 23:23:46 -08:00
2024-11-22-relate-mux_asset_id-to-vods.sql dec 2024 progress 2024-12-11 23:23:46 -08:00
2024-11-22-relate-thumbnails-to-vods.sql dec 2024 progress 2024-12-11 23:23:46 -08:00
2024-11-22-rename-vtuber_num-to-vtuber_id.sql dec 2024 progress 2024-12-11 23:23:46 -08:00
README.md dec 2024 progress 2024-12-11 23:23:46 -08:00
a.migration.sh use supertokens 2024-11-05 11:48:21 -08:00
scratch.sql use supertokens 2024-11-05 11:48:21 -08:00

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