Fix check criteria.

This commit is contained in:
Mike Cao 2022-06-27 23:00:14 -07:00
parent 1141b6b7b0
commit 9aa3946ed4

View File

@ -59,7 +59,7 @@ async function run(cmd, args) {
async function checkMigrations() { async function checkMigrations() {
const output = await run('prisma', ['migrate', 'status']); const output = await run('prisma', ['migrate', 'status']);
const missingMigrations = output.includes('Following migration have not yet been applied'); const missingMigrations = output.includes('have not yet been applied');
const notManaged = output.includes('The current database is not managed'); const notManaged = output.includes('The current database is not managed');
if (notManaged || missingMigrations) { if (notManaged || missingMigrations) {