unified-storage: fixes for sqlkv to work with postgres (#115961)

* unified-storage: fixes for sqlkv to work with postgres
This commit is contained in:
Will Assis
2026-01-08 08:21:35 -05:00
committed by GitHub
parent dff9bea3e8
commit 58e9e4a56d
5 changed files with 15 additions and 7 deletions
@@ -217,5 +217,8 @@ func initResourceTables(mg *migrator.Migrator) string {
migrator.ConvertUniqueKeyToPrimaryKey(mg, oldResourceVersionUniqueKey, updatedResourceVersionTable)
mg.AddMigration("Change key_path collation of resource_history in postgres", migrator.NewRawSQLMigration("").Postgres(`ALTER TABLE resource_history ALTER COLUMN key_path TYPE VARCHAR(2048) COLLATE "C";`))
mg.AddMigration("Change key_path collation of resource_events in postgres", migrator.NewRawSQLMigration("").Postgres(`ALTER TABLE resource_events ALTER COLUMN key_path TYPE VARCHAR(2048) COLLATE "C";`))
return marker
}