SQL-based migration tool for MySQL databases
npm install -g mym
{
"mysql": {
"host" : "localhost",
"user" : "root",
"password" : "123",
"database" : "mym_test"
},
"migrationsPath": "migrations"
}
mym new create_users_table
Add some SQL to the created file, then:
mym run