1.0.4 • Published 2 years ago
@evidenceai/naali-db-migrations v1.0.4
Database migrations
This project uses node-pg-migrate package for migrations. See node-pg-migrate on GitHub for detailed docs and examples.
Environment variables
Connection string is expected in DATABASE_URL environment variable.
Copy .env.example to .env and edit the connection string.
Create a new migration
Run npm run migrate create <migration_name>;
Initialize database or migrate to the latest version
Run npm run migrate up;