fp/scripts/data-migrations
CJ_Clippy 255503acb6
ci / build (push) Failing after 1s Details
use supertokens
2024-11-05 11:48:21 -08:00
..
2024-10-07-from-strapi-to-postgrest.sql use supertokens 2024-11-05 11:48:21 -08:00
2024-10-18-drupal.php use supertokens 2024-11-05 11:48:21 -08:00
2024-10-25-from-strapi-to-postgrest-mk2.sql use supertokens 2024-11-05 11:48:21 -08:00
README.md use supertokens 2024-11-05 11:48:21 -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

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