reset method

Future<void> reset()

Resets everything, meaning dropping and re-creating every table.

Implementation

Future<void> reset() async {
  Log.debug('reset()', '$runtimeType');

  for (var e in allSchemaEntities) {
    if (e is TableInfo) {
      await e.deleteAll();
    } else {
      await createMigrator().drop(e);
    }
  }

  await createMigrator().createAll();
}