forge
Explore
Log in

Don't you dare go Hollow

forge

Clone
★ 0

0 watching0 forksRustAGPL-3.07.1 MiB490f099Tahinli7 hours ago322 commits

0042_colours.sql12 lines, 666 bytesHistoryRawDownload
1-- Colour choices per user: the accent and base palettes for the light and the dark theme. The
2-- ids are those of forge-web's accent_palette.rs, which decides what exists, so there is no
3-- CHECK list here. Applied by store/migrate.rs.
4--
5-- `accent` now means the light-theme accent. The dark accent starts as a copy of it, so an
6-- existing user sees the same colours in both themes until they choose otherwise.
7
8ALTER TABLE users ADD COLUMN accent_dark TEXT NOT NULL DEFAULT 'sage';
9ALTER TABLE users ADD COLUMN base_light TEXT NOT NULL DEFAULT 'fern';
10ALTER TABLE users ADD COLUMN base_dark TEXT NOT NULL DEFAULT 'fern';
11
12UPDATE users SET accent_dark = accent;