Remove Serbian colors including Braon from database

- Remove Serbian color entries from schema.sql
- Add migration to delete Serbian colors from existing databases
- Add migration runner scripts for easier database updates
- Install pg package for PostgreSQL client support

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: DaX <noreply@anthropic.com>
This commit is contained in:
DaX
2025-06-24 12:04:45 +02:00
parent e8f9a6c6e3
commit 57abb80072
6 changed files with 245 additions and 13 deletions

View File

@@ -0,0 +1,2 @@
-- Migration to remove Serbian colors from boje table
DELETE FROM boje WHERE name IN ('Bela', 'Crna', 'Crvena', 'Plava', 'Zelena', 'Žuta', 'Narandžasta', 'Ljubičasta', 'Siva', 'Braon');

View File

@@ -51,16 +51,4 @@ CREATE TRIGGER update_filaments_updated_at BEFORE UPDATE
CREATE TRIGGER update_colors_updated_at BEFORE UPDATE
ON colors FOR EACH ROW EXECUTE FUNCTION update_updated_at_column();
-- Insert default colors from legacy data
INSERT INTO colors (name, hex) VALUES
('Crna', '#000000'),
('Bela', '#FFFFFF'),
('Plava', '#0000FF'),
('Crvena', '#FF0000'),
('Zelena', '#00FF00'),
('Žuta', '#FFFF00'),
('Narandžasta', '#FFA500'),
('Ljubičasta', '#800080'),
('Siva', '#808080'),
('Braon', '#A52A2A')
ON CONFLICT (name) DO NOTHING;
-- Default colors are now inserted by Bambu Lab colors migration