feat: add colorscheme to user in db (#987)

This commit is contained in:
Meier Lukas
2024-09-01 20:37:52 +02:00
committed by GitHub
parent 824ec8a9ca
commit b080e0de71
28 changed files with 2869 additions and 58 deletions

View File

@@ -0,0 +1 @@
ALTER TABLE `user` ADD `colorScheme` varchar(5) DEFAULT 'auto' NOT NULL;

File diff suppressed because it is too large Load Diff

View File

@@ -50,6 +50,13 @@
"when": 1722517058725,
"tag": "0006_young_micromax",
"breakpoints": true
},
{
"idx": 7,
"version": "5",
"when": 1723749320706,
"tag": "0007_boring_nocturne",
"breakpoints": true
}
]
}

View File

@@ -0,0 +1 @@
ALTER TABLE `user` ADD `colorScheme` text DEFAULT 'auto' NOT NULL;

File diff suppressed because it is too large Load Diff

View File

@@ -50,6 +50,13 @@
"when": 1722517033483,
"tag": "0006_windy_doctor_faustus",
"breakpoints": true
},
{
"idx": 7,
"version": "6",
"when": 1723746828385,
"tag": "0007_known_ultragirl",
"breakpoints": true
}
]
}

View File

@@ -8,6 +8,7 @@ import type {
BackgroundImageRepeat,
BackgroundImageSize,
BoardPermission,
ColorScheme,
GroupPermissionKey,
IntegrationKind,
IntegrationPermission,
@@ -30,6 +31,7 @@ export const users = mysqlTable("user", {
homeBoardId: varchar("homeBoardId", { length: 64 }).references((): AnyMySqlColumn => boards.id, {
onDelete: "set null",
}),
colorScheme: varchar("colorScheme", { length: 5 }).$type<ColorScheme>().default("auto").notNull(),
});
export const accounts = mysqlTable(

View File

@@ -10,6 +10,7 @@ import type {
BackgroundImageRepeat,
BackgroundImageSize,
BoardPermission,
ColorScheme,
GroupPermissionKey,
IntegrationKind,
IntegrationPermission,
@@ -31,6 +32,7 @@ export const users = sqliteTable("user", {
homeBoardId: text("homeBoardId").references((): AnySQLiteColumn => boards.id, {
onDelete: "set null",
}),
colorScheme: text("colorScheme").$type<ColorScheme>().default("auto").notNull(),
});
export const accounts = sqliteTable(