migration(db): add C collation to sort_index column

This commit is contained in:
yiling
2026-06-15 19:51:59 +08:00
parent 1f640ede19
commit cf2546c861
2 changed files with 17 additions and 15 deletions
@@ -0,0 +1,6 @@
-- AlterTable: Change sort_index column collation to "C"
ALTER TABLE "assets" ALTER COLUMN "sort_index" TYPE TEXT COLLATE "C";
-- Recreate index on sort_index with "C" collation
DROP INDEX IF EXISTS "assets_sort_index_idx";
CREATE INDEX "assets_sort_index_idx" ON "assets" ("sort_index" COLLATE "C");