fp/services/migrations-data/migrations/README.md

18 lines
496 B
Markdown
Raw Normal View History

2024-11-05 19:48:21 +00:00
# Futureporn data migrations
This directory is for data migrations ONLY.
2024-12-16 20:39:23 +00:00
For schema migrations, see ./migrations node package
2024-11-05 19:48:21 +00:00
## 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