fix: missing migration for default colorscheme change (#1335)
* fix: missing migration for default colorscheme change * fix: format issues
This commit is contained in:
@@ -0,0 +1 @@
|
|||||||
|
ALTER TABLE `user` MODIFY COLUMN `colorScheme` varchar(5) NOT NULL DEFAULT 'dark';
|
||||||
1522
packages/db/migrations/mysql/meta/0012_snapshot.json
Normal file
1522
packages/db/migrations/mysql/meta/0012_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -85,6 +85,13 @@
|
|||||||
"when": 1728490046896,
|
"when": 1728490046896,
|
||||||
"tag": "0011_freezing_banshee",
|
"tag": "0011_freezing_banshee",
|
||||||
"breakpoints": true
|
"breakpoints": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idx": 12,
|
||||||
|
"version": "5",
|
||||||
|
"when": 1729348221072,
|
||||||
|
"tag": "0012_abnormal_wendell_vaughn",
|
||||||
|
"breakpoints": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,21 @@
|
|||||||
|
PRAGMA foreign_keys=OFF;--> statement-breakpoint
|
||||||
|
CREATE TABLE `__new_user` (
|
||||||
|
`id` text PRIMARY KEY NOT NULL,
|
||||||
|
`name` text,
|
||||||
|
`email` text,
|
||||||
|
`emailVerified` integer,
|
||||||
|
`image` text,
|
||||||
|
`password` text,
|
||||||
|
`salt` text,
|
||||||
|
`provider` text DEFAULT 'credentials' NOT NULL,
|
||||||
|
`homeBoardId` text,
|
||||||
|
`colorScheme` text DEFAULT 'dark' NOT NULL,
|
||||||
|
`firstDayOfWeek` integer DEFAULT 1 NOT NULL,
|
||||||
|
`pingIconsEnabled` integer DEFAULT false NOT NULL,
|
||||||
|
FOREIGN KEY (`homeBoardId`) REFERENCES `board`(`id`) ON UPDATE no action ON DELETE set null
|
||||||
|
);
|
||||||
|
--> statement-breakpoint
|
||||||
|
INSERT INTO `__new_user`("id", "name", "email", "emailVerified", "image", "password", "salt", "provider", "homeBoardId", "colorScheme", "firstDayOfWeek", "pingIconsEnabled") SELECT "id", "name", "email", "emailVerified", "image", "password", "salt", "provider", "homeBoardId", "colorScheme", "firstDayOfWeek", "pingIconsEnabled" FROM `user`;--> statement-breakpoint
|
||||||
|
DROP TABLE `user`;--> statement-breakpoint
|
||||||
|
ALTER TABLE `__new_user` RENAME TO `user`;--> statement-breakpoint
|
||||||
|
PRAGMA foreign_keys=ON;
|
||||||
1455
packages/db/migrations/sqlite/meta/0012_snapshot.json
Normal file
1455
packages/db/migrations/sqlite/meta/0012_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -85,6 +85,13 @@
|
|||||||
"when": 1728490026154,
|
"when": 1728490026154,
|
||||||
"tag": "0011_classy_angel",
|
"tag": "0011_classy_angel",
|
||||||
"breakpoints": true
|
"breakpoints": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idx": 12,
|
||||||
|
"version": "6",
|
||||||
|
"when": 1729348200091,
|
||||||
|
"tag": "0012_ambiguous_black_panther",
|
||||||
|
"breakpoints": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user