about summary refs log tree commit diff
path: root/migrations
diff options
context:
space:
mode:
authorVika <vika@fireburn.ru>2025-04-20 08:25:57 +0300
committerVika <vika@fireburn.ru>2025-04-20 10:01:01 +0300
commit3207c8ea57eac714417494e06ce0f82864b7ff1e (patch)
tree70cfde719dd596dbe05d38276526e763d55eac1d /migrations
parentb3288627d171fff9a289a56a4ae27307985f9f96 (diff)
downloadkittybox-3207c8ea57eac714417494e06ce0f82864b7ff1e.tar.zst
WIP: Theme support
Kittybox can now ship with several different stylesheets, provided by
the renderer. Unknown stylesheets fall back to the default one, which is
the same Kittybox has shipped since its inception.

There's also a settings field for custom CSS, but it's not exposed
anywhere yet.

Change-Id: I2850dace5c40f9fed04b4651c551a861df5b83d3
Diffstat (limited to 'migrations')
-rw-r--r--migrations/0002_custom_theme_setting.sql3
1 files changed, 3 insertions, 0 deletions
diff --git a/migrations/0002_custom_theme_setting.sql b/migrations/0002_custom_theme_setting.sql
new file mode 100644
index 0000000..a258e82
--- /dev/null
+++ b/migrations/0002_custom_theme_setting.sql
@@ -0,0 +1,3 @@
+ALTER TABLE kittybox.users
+ADD COLUMN custom_css JSONB NOT NULL DEFAULT '""'::jsonb,
+ADD COLUMN theme JSONB NOT NULL DEFAULT '"kittybox"'::jsonb;