fix: crash because of migration

* Fixed crash related to migration
This commit is contained in:
Acclorite 2025-09-24 23:30:34 +03:00
parent 6d7e178d4c
commit c46ecb7ff0
No known key found for this signature in database
GPG key ID: 6E54C611F6EE8593

View file

@ -133,7 +133,7 @@ object DatabaseHelper {
override fun migrate(database: SupportSQLiteDatabase) { override fun migrate(database: SupportSQLiteDatabase) {
database.execSQL( database.execSQL(
""" """
CREATE TABLE IF NOT EXISTS ColorPresetEntity ( CREATE TABLE IF NOT EXISTS ColorPresetEntity_new (
id INTEGER PRIMARY KEY AUTOINCREMENT, id INTEGER PRIMARY KEY AUTOINCREMENT,
name TEXT NOT NULL, name TEXT NOT NULL,
backgroundColor INTEGER NOT NULL, backgroundColor INTEGER NOT NULL,