fix(#14): Implement database migrations system with baseline migration
Some checks are pending
Docker Test / test (push) Waiting to run
Some checks are pending
Docker Test / test (push) Waiting to run
This commit is contained in:
parent
2f2ea4d483
commit
3916dd42bf
5 changed files with 248 additions and 23 deletions
17
backend/migrations/config.js
Normal file
17
backend/migrations/config.js
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
// Migration configuration
|
||||
export default {
|
||||
// Database connection settings
|
||||
connection: {
|
||||
host: process.env.DB_HOST || 'localhost',
|
||||
port: process.env.DB_PORT || 3306,
|
||||
user: process.env.DB_USER || 'root',
|
||||
password: process.env.DB_PASSWORD || '',
|
||||
database: process.env.DB_NAME || 'helpyourneighbour'
|
||||
},
|
||||
|
||||
// Migration table name
|
||||
tableName: 'migrations',
|
||||
|
||||
// Path to migration files
|
||||
migrationsDir: './migrations'
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue