Preferences: Create indices (#48356)

This commit is contained in:
Emil Tullstedt
2022-11-07 15:52:26 +01:00
committed by GitHub
parent 623de12e35
commit 1ba25b2baa

View File

@@ -55,4 +55,7 @@ func addPreferencesMigrations(mg *Migrator) {
// change column type of preferences.json_data
mg.AddMigration("alter preferences.json_data to mediumtext v1", NewRawSQLMigration("").
Mysql("ALTER TABLE preferences MODIFY json_data MEDIUMTEXT;"))
mg.AddMigration("Add preferences index org_id", NewAddIndexMigration(preferencesV2, preferencesV2.Indices[0]))
mg.AddMigration("Add preferences index user_id", NewAddIndexMigration(preferencesV2, preferencesV2.Indices[1]))
}