run method
void
run(
- CommonDatabase database
Runs the SQL of the schema on database, and throws if it fails. It is
not run in a transaction of its own: SqliteMigrationRunner runs it in
one with the record of its migration.
Implementation
void run(CommonDatabase database) {
var sql = compile();
if (sql.trim().isEmpty) return;
try {
database.execute(sql);
} catch (e) {
_log.severe('Failed to run query: [ $sql ]', e);
rethrow;
}
}