Create DB triggers once

This commit is contained in:
M66B 2023-01-31 07:38:21 +01:00
parent 8565e53bfc
commit 2228ae9014
1 changed files with 4 additions and 4 deletions

View File

@ -2384,7 +2384,7 @@ public abstract class DB extends RoomDatabase {
logMigration(startVersion, endVersion);
db.execSQL("DROP TRIGGER IF EXISTS `attachment_insert`");
db.execSQL("DROP TRIGGER IF EXISTS `attachment_delete`");
createTriggers(db);
//createTriggers(db);
}
}).addMigrations(new Migration(227, 228) {
@Override
@ -2704,21 +2704,21 @@ public abstract class DB extends RoomDatabase {
logMigration(startVersion, endVersion);
db.execSQL("ALTER TABLE `account` ADD COLUMN `last_modified` INTEGER");
db.execSQL("ALTER TABLE `identity` ADD COLUMN `last_modified` INTEGER");
createTriggers(db);
//createTriggers(db);
}
}).addMigrations(new Migration(263, 264) {
@Override
public void migrate(@NonNull SupportSQLiteDatabase db) {
logMigration(startVersion, endVersion);
db.execSQL("ALTER TABLE `account` ADD COLUMN `raw_fetch` INTEGER NOT NULL DEFAULT 0");
createTriggers(db);
//createTriggers(db);
}
}).addMigrations(new Migration(264, 265) {
@Override
public void migrate(@NonNull SupportSQLiteDatabase db) {
logMigration(startVersion, endVersion);
db.execSQL("ALTER TABLE `identity` ADD COLUMN `reply_extra_name` INTEGER NOT NULL DEFAULT 0");
createTriggers(db);
//createTriggers(db);
}
}).addMigrations(new Migration(265, 266) {
@Override