diff --git a/test/commands/db-seed.spec.ts b/test/commands/db-seed.spec.ts index 3a1f6e56..fd4f3779 100644 --- a/test/commands/db-seed.spec.ts +++ b/test/commands/db-seed.spec.ts @@ -30,7 +30,7 @@ test.group('DbSeed', (group) => { group.afterEach(async () => { await cleanup() - await cleanup(['adonis_schema', 'schema_users', 'schema_accounts']) + await cleanup(['adonis_schema', 'adonis_schema_versions', 'schema_users', 'schema_accounts']) await fs.cleanup() }) diff --git a/test/commands/make-migration.spec.ts b/test/commands/make-migration.spec.ts index 0655d19e..1d104b4b 100644 --- a/test/commands/make-migration.spec.ts +++ b/test/commands/make-migration.spec.ts @@ -46,7 +46,7 @@ test.group('MakeMigration', (group) => { group.after(async () => { await cleanup() - await cleanup(['adonis_schema', 'schema_users', 'schema_accounts']) + await cleanup(['adonis_schema', 'adonis_schema_versions', 'schema_users', 'schema_accounts']) await fs.cleanup() }) diff --git a/test/commands/migrate.spec.ts b/test/commands/migrate.spec.ts index d49d99cf..da58338c 100644 --- a/test/commands/migrate.spec.ts +++ b/test/commands/migrate.spec.ts @@ -36,7 +36,7 @@ test.group('Migrate', (group) => { group.afterEach(async () => { await cleanup() - await cleanup(['adonis_schema', 'schema_users', 'schema_accounts']) + await cleanup(['adonis_schema', 'adonis_schema_versions', 'schema_users', 'schema_accounts']) await fs.cleanup() }) diff --git a/test/commands/wipe-fresh.spec.ts b/test/commands/wipe-fresh.spec.ts index 0fe2f57c..6c5a9764 100644 --- a/test/commands/wipe-fresh.spec.ts +++ b/test/commands/wipe-fresh.spec.ts @@ -24,7 +24,7 @@ test.group('db:wipe and migrate:fresh', (group) => { group.afterEach(async () => { await cleanup() - await cleanup(['adonis_schema', 'schema_users']) + await cleanup(['adonis_schema', 'adonis_schema_versions', 'schema_users']) await fs.cleanup() }) diff --git a/test/migrations/migrator.spec.ts b/test/migrations/migrator.spec.ts index a0cf6fa6..3536c56e 100644 --- a/test/migrations/migrator.spec.ts +++ b/test/migrations/migrator.spec.ts @@ -1165,7 +1165,7 @@ test.group('Migrator', (group) => { table.increments().notNullable() table.string('name').notNullable() table.integer('batch').notNullable() - table.timestamp('migration_time').defaultTo('now()') + table.timestamp('migration_time').defaultTo(db.connection().getWriteClient().fn.now()) }) } @@ -1224,7 +1224,7 @@ test.group('Migrator', (group) => { table.increments().notNullable() table.string('name').notNullable() table.integer('batch').notNullable() - table.timestamp('migration_time').defaultTo('now()') + table.timestamp('migration_time').defaultTo(db.connection().getWriteClient().fn.now()) }) }