Skip to main content
zerotal

Documentation


Documentation / @zerotal/testing / index / MigrateDatabaseOptions

Interface: MigrateDatabaseOptions

Defined in: testing/src/migrateDatabase.ts:11

Properties

connection?

optional connection?: SQLInstance

Defined in: testing/src/migrateDatabase.ts:16

Connection to migrate. Defaults to the active model connection, which is what createTestApp() and refreshDatabase({ connection }) install.


path?

optional path?: string

Defined in: testing/src/migrateDatabase.ts:18

Directory holding the migration files. Defaults to database/migrations.


table?

optional table?: string

Defined in: testing/src/migrateDatabase.ts:20

Tracking-table name. Defaults to migrations.