createMigrationsTable method

  1. @override
Future<void> createMigrationsTable()
override

Creates the migrations table, with its id, batch and path, if it does not exist.

Implementation

@override
Future<void> createMigrationsTable() async {
  database.execute('''
  CREATE TABLE IF NOT EXISTS "migrations" (
    id INTEGER PRIMARY KEY AUTOINCREMENT,
    batch INTEGER,
    path VARCHAR(500)
  );
  ''');
}