first commit
This commit is contained in:
commit
dd6a740645
37 files changed
+5424
No files matched your search
@@ -0,0 +1,15 @@
|
||||
-- Clients always have a color; projects inherit their client's color unless set.
|
||||
ALTER TABLE clients ADD COLUMN color TEXT NOT NULL DEFAULT '#2f6f5e';
|
||||
ALTER TABLE projects ADD COLUMN color TEXT;
|
||||
|
||||
-- Spread existing clients over the default palette (see repo::PALETTE).
|
||||
UPDATE clients SET color = CASE (id - 1) % 8
|
||||
WHEN 0 THEN '#2f6f5e'
|
||||
WHEN 1 THEN '#3b6fb6'
|
||||
WHEN 2 THEN '#c2410c'
|
||||
WHEN 3 THEN '#7c3aed'
|
||||
WHEN 4 THEN '#be185d'
|
||||
WHEN 5 THEN '#a16207'
|
||||
WHEN 6 THEN '#0e7490'
|
||||
ELSE '#4d7c0f'
|
||||
END;
|
||||
Reference in new issue
Block a user