mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Added knex-migrator init
to setup script
ref PROD-233 When clearing the Docker database container, you still need to be able to run `yarn setup` to create the tables.
This commit is contained in:
parent
a3bbd579dd
commit
eebf0e2eaf
1 changed files with 3 additions and 0 deletions
3
.github/scripts/setup.js
vendored
3
.github/scripts/setup.js
vendored
|
@ -90,5 +90,8 @@ async function runAndStream(command, args, options) {
|
|||
}
|
||||
} else {
|
||||
console.log(chalk.green(`MySQL already configured, skipping setup`));
|
||||
|
||||
console.log(chalk.blue(`Running knex-migrator init`));
|
||||
await runAndStream('yarn', ['knex-migrator', 'init'], {cwd: coreFolder});
|
||||
}
|
||||
})();
|
||||
|
|
Loading…
Add table
Reference in a new issue