Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add app.db migration to v57 #5617

Merged
merged 1 commit into from
Feb 7, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions app/src/main/java/com/duckduckgo/app/global/db/AppDatabase.kt
Original file line number Diff line number Diff line change
Expand Up @@ -687,6 +687,12 @@ class MigrationsProvider(val context: Context, val settingsDataStore: SettingsDa
}
}

private val MIGRATION_56_TO_57: Migration = object : Migration(56, 57) {
override fun migrate(database: SupportSQLiteDatabase) {
database.execSQL("CREATE TABLE IF NOT EXISTS `experiment_app_usage_entity` (`isoDateET` TEXT NOT NULL, PRIMARY KEY(`isoDateET`))")
}
}

/**
* WARNING ⚠️
* This needs to happen because Room doesn't support UNIQUE (...) ON CONFLICT REPLACE when creating the bookmarks table.
Expand Down Expand Up @@ -768,6 +774,7 @@ class MigrationsProvider(val context: Context, val settingsDataStore: SettingsDa
MIGRATION_53_TO_54,
MIGRATION_54_TO_55,
MIGRATION_55_TO_56,
MIGRATION_56_TO_57,
)

@Deprecated(
Expand Down
Loading