disable validation for release

This commit is contained in:
Fabian Freund
2026-05-26 16:50:27 +02:00
parent 1b8eaf2c76
commit b6fd56b8b7
@@ -53,12 +53,12 @@ class TabDatabase extends $TabDatabase with TrigramQueryBuilderMixin {
if (kDebugMode) { if (kDebugMode) {
// This check pulls in a fair amount of code that's not needed // This check pulls in a fair amount of code that's not needed
// anywhere else, so we recommend only doing it in debug builds. // anywhere else, so we recommend only doing it in debug builds.
await validateDatabaseSchema( // await validateDatabaseSchema(
setup: (database) { // setup: (database) {
registerLexorankFunctions(database); // registerLexorankFunctions(database);
registerUrlFunctions(database); // registerUrlFunctions(database);
}, // },
); // );
} }
await customStatement('PRAGMA foreign_keys = ON'); await customStatement('PRAGMA foreign_keys = ON');