mirror of
https://github.com/strapi/strapi.git
synced 2025-09-25 08:19:07 +00:00
Merge pull request #14593 from gary-alway/disable-migrations-config
This commit is contained in:
commit
29e6833f13
@ -20,6 +20,8 @@ class Database {
|
||||
connection: {},
|
||||
settings: {
|
||||
forceMigration: true,
|
||||
runMigrations: true,
|
||||
...config.settings,
|
||||
},
|
||||
...config,
|
||||
};
|
||||
|
@ -61,7 +61,7 @@ const createMigrationsProvider = (db) => {
|
||||
async shouldRun() {
|
||||
const pending = await migrations.pending();
|
||||
|
||||
return pending.length > 0;
|
||||
return pending.length > 0 && db.settings.runMigrations;
|
||||
},
|
||||
async up() {
|
||||
await migrations.up();
|
||||
|
Loading…
x
Reference in New Issue
Block a user