fix(#14): Implement database migrations system with baseline migration
Some checks are pending
Docker Test / test (push) Waiting to run

This commit is contained in:
OpenClaw 2026-03-06 23:37:39 +00:00
parent 2f2ea4d483
commit 3916dd42bf
5 changed files with 248 additions and 23 deletions

View 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'
};