mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-02 05:54:44 +00:00
migration(db): add C collation to sort_index column
This commit is contained in:
+6
@@ -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");
|
||||
Reference in New Issue
Block a user