From eebf0e2eaf846c2f69e9450b4dec3995c4b09c17 Mon Sep 17 00:00:00 2001 From: Simon Backx Date: Tue, 12 Dec 2023 17:35:13 +0100 Subject: [PATCH] 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. --- .github/scripts/setup.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/scripts/setup.js b/.github/scripts/setup.js index 59fd37b3b5..07d954cb1e 100644 --- a/.github/scripts/setup.js +++ b/.github/scripts/setup.js @@ -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}); } })();