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:
Simon Backx 2023-12-12 17:35:13 +01:00 committed by Simon Backx
parent a3bbd579dd
commit eebf0e2eaf

View File

@ -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});
}
})();