Skip to content

remix/data-table · Interface

View Source

DatabaseResetOptions

Summary

Options for rebuilding a database through Database.reset().

Signature

interface DatabaseResetOptions {
  journalTable?: string
  migrations: Migrations
  seed?: Seed
}

Properties

journalTable

Journal table used to record applied migrations. Defaults to data_table_migrations.

migrations

Migrations to apply after wiping the database.

seed

Function that initializes application data after migrations finish.