migrat-postgres
Version:
PostgreSQL adapter for the Migrat migration tool.
21 lines (19 loc) • 416 B
JavaScript
const path = require('path');
const postgres = require('../../index');
module.exports = {
migrationsDir: './migrations',
localState: path.resolve(__dirname, './.migratdb'),
plugins: [
postgres({
host: 'localhost',
port: 5432,
user: 'postgres',
password: '',
database: 'testdb',
migratSchema: 'migrat',
migratTable: 'migrat',
enableLocking: true,
enableStateStorage: true
}),
]
};