refactor: consolidate header branding migrations

This commit is contained in:
ajnart committed 2026-08-24 09:39:54 +02:00
1 parent 12cad9d3fb
commit 75bf432859
15 files changed
+87 -8306

No files matched your search

@@ -1,3 +1,5 @@
ALTER TABLE `user` ADD `header_preferences` text DEFAULT '{"version":3,"visible":true,"searchDisplay":"input","zones":{"left":[{"type":"builtin","id":"logo"}],"center":[{"type":"builtin","id":"search"}],"right":[{"type":"builtin","id":"boardEdit"},{"type":"builtin","id":"boardSettings"},{"type":"builtin","id":"user"}]}}' NOT NULL;
--> statement-breakpoint
INSERT INTO `serverSetting` (`setting_key`, `value`)
VALUES ('branding', '{"json":{"appName":"Homarr","greeting":"","logoImageUrl":null,"faviconImageUrl":null,"primaryColor":"#fa5252","secondaryColor":"#fd7e14","lockPrimaryColor":false,"signInBackgroundImageUrl":null,"signInBackgroundOverlay":0.55,"authBranding":{"showAppName":true,"showLogo":true,"showGreeting":true},"defaultRadius":"md"}}')
ON CONFLICT (`setting_key`) DO NOTHING;
@@ -1 +0,0 @@
ALTER TABLE `user` ADD `header_preferences` text DEFAULT '{"version":3,"visible":true,"searchDisplay":"input","zones":{"left":[{"type":"builtin","id":"logo"}],"center":[{"type":"builtin","id":"search"}],"right":[{"type":"builtin","id":"boardEdit"},{"type":"builtin","id":"boardSettings"},{"type":"builtin","id":"user"}]}}' NOT NULL;
@@ -1,7 +1,7 @@
{
"version": "6",
"dialect": "sqlite",
"id": "8b2aca95-c639-49e9-a3e4-e9d61432a9fe",
"id": "efc119da-0745-4f07-a783-0dd19f24cb4f",
"prevId": "5114a19e-3b78-482a-a68b-69874a05ee76",
"tables": {
"account": {
File diff suppressed because it is too large. Load diff
@@ -327,15 +327,8 @@
{
"idx": 46,
"version": "6",
"when": 1787496042447,
"tag": "0046_add_user_header_preferences",
"breakpoints": true
},
{
"idx": 47,
"version": "6",
"when": 1787496053654,
"tag": "0047_add_server_branding_settings",
"when": 1787556956665,
"tag": "0046_add_header_preferences_and_branding",
"breakpoints": true
}
]