Add 76 missing Bambu Lab colors and expand filament type support
- Added comprehensive color migration with 76 new Bambu Lab colors - Includes glow, metallic, sparkle, gradient, ABS, and translucent variants - Added PAHT material type with CF and Bez Finisha finish support - Added Tough+ finish option for PLA filaments - Fixed refill/spulna restrictions for specific combinations: - ABS GF Yellow/Orange now refill-only - TPU 95A HF now refill-only - Removed spool restrictions for Galaxy and Basic finishes - Updated frontend color mappings with all new colors - All colors now available in admin panel for inventory management
This commit is contained in:
102
database/migrations/020_add_missing_colors_2025.sql
Normal file
102
database/migrations/020_add_missing_colors_2025.sql
Normal file
@@ -0,0 +1,102 @@
|
||||
-- Migration: Add missing Bambu Lab colors (2025)
|
||||
-- Created: 2025-11-13
|
||||
-- Description: Adds missing color definitions from Bambu Lab catalog
|
||||
|
||||
INSERT INTO colors (name, hex, cena_refill, cena_spulna) VALUES
|
||||
-- Basic/Matte Colors
|
||||
('Clear Black', '#1a1a1a', 3499, 3999),
|
||||
('Transparent', '#f0f0f0', 3499, 3999),
|
||||
('Brick Red', '#8b2e2e', 3499, 3999),
|
||||
('Titan Gray', '#5c6670', 3499, 3999),
|
||||
('Indigo Blue', '#4b0082', 3499, 3999),
|
||||
('Malachite Green', '#0bda51', 3499, 3999),
|
||||
('Violet Purple', '#8f00ff', 3499, 3999),
|
||||
('Iris Purple', '#5d3fd3', 3499, 3999),
|
||||
('Royal Blue', '#4169e1', 3499, 3999),
|
||||
('Lava Gray', '#4a4a4a', 3499, 3999),
|
||||
('Burgundy Red', '#800020', 3499, 3999),
|
||||
('Matcha Green', '#8db255', 3499, 3999),
|
||||
('Light Cyan', '#e0ffff', 3499, 3999),
|
||||
|
||||
-- Glow Colors
|
||||
('Blaze', '#ff6347', 3499, 3999),
|
||||
('Glow Blue', '#00d4ff', 3499, 3999),
|
||||
('Glow Pink', '#ff69b4', 3499, 3999),
|
||||
('Glow Yellow', '#ffff00', 3499, 3999),
|
||||
('Glow Orange', '#ff8c00', 3499, 3999),
|
||||
('Nebulane', '#9b59b6', 3499, 3999),
|
||||
|
||||
-- Metallic Colors
|
||||
('IronGray Metallic', '#71797e', 3499, 3999),
|
||||
('Copper Brown Metallic', '#b87333', 3499, 3999),
|
||||
('Iridium Gold Metallic', '#d4af37', 3499, 3999),
|
||||
('Oxide Green Metallic', '#6b8e23', 3499, 3999),
|
||||
('Cobalt Blue Metallic', '#0047ab', 3499, 3999),
|
||||
|
||||
-- Marble Colors
|
||||
('White Marble', '#f5f5f5', 3499, 3999),
|
||||
('Red Granite', '#8b4513', 3499, 3999),
|
||||
|
||||
-- Sparkle Colors
|
||||
('Classic Gold Sparkle', '#ffd700', 3499, 3999),
|
||||
('Onyx Black Sparkle', '#0f0f0f', 3499, 3999),
|
||||
('Crimson Red Sparkle', '#dc143c', 3499, 3999),
|
||||
('Royal Purple Sparkle', '#7851a9', 3499, 3999),
|
||||
('Slate Gray Sparkle', '#708090', 3499, 3999),
|
||||
('Alpine Green Sparkle', '#2e8b57', 3499, 3999),
|
||||
|
||||
-- Gradient Colors
|
||||
('South Beach', '#ff69b4', 3499, 3999),
|
||||
('Dawn Radiance', '#ff7f50', 3499, 3999),
|
||||
('Blue Hawaii', '#1e90ff', 3499, 3999),
|
||||
('Gilded Rose', '#ff1493', 3499, 3999),
|
||||
('Midnight Blaze', '#191970', 3499, 3999),
|
||||
('Neon City', '#00ffff', 3499, 3999),
|
||||
('Velvet Eclipse', '#8b008b', 3499, 3999),
|
||||
('Solar Breeze', '#ffb347', 3499, 3999),
|
||||
('Arctic Whisper', '#b0e0e6', 3499, 3999),
|
||||
('Ocean to Meadow', '#40e0d0', 3499, 3999),
|
||||
('Dusk Glare', '#ff6347', 3499, 3999),
|
||||
('Mint Lime', '#98fb98', 3499, 3999),
|
||||
('Pink Citrus', '#ff69b4', 3499, 3999),
|
||||
('Blueberry Bubblegum', '#7b68ee', 3499, 3999),
|
||||
('Cotton Candy Cloud', '#ffb6c1', 3499, 3999),
|
||||
|
||||
-- Pastel/Light Colors
|
||||
('Lavender', '#e6e6fa', 3499, 3999),
|
||||
('Ice Blue', '#d0e7ff', 3499, 3999),
|
||||
('Mellow Yellow', '#fff44f', 3499, 3999),
|
||||
('Teal', '#008080', 3499, 3999),
|
||||
|
||||
-- ABS Colors
|
||||
('ABS Azure', '#007fff', 3499, 3999),
|
||||
('ABS Olive', '#808000', 3499, 3999),
|
||||
('ABS Blue', '#0000ff', 3499, 3999),
|
||||
('ABS Tangerine Yellow', '#ffcc00', 3499, 3999),
|
||||
('ABS Navy Blue', '#000080', 3499, 3999),
|
||||
('ABS Orange', '#ff8800', 3499, 3999),
|
||||
('ABS Bambu Green', '#00c853', 3499, 3999),
|
||||
('ABS Red', '#ff0000', 3499, 3999),
|
||||
('ABS White', '#ffffff', 3499, 3999),
|
||||
('ABS Black', '#000000', 3499, 3999),
|
||||
('ABS Silver', '#c0c0c0', 3499, 3999),
|
||||
|
||||
-- Translucent Colors
|
||||
('Translucent Gray', '#9e9e9e', 3499, 3999),
|
||||
('Translucent Brown', '#8b4513', 3499, 3999),
|
||||
('Translucent Purple', '#9370db', 3499, 3999),
|
||||
('Translucent Orange', '#ffa500', 3499, 3999),
|
||||
('Translucent Olive', '#6b8e23', 3499, 3999),
|
||||
('Translucent Pink', '#ffb6c1', 3499, 3999),
|
||||
('Translucent Light Blue', '#add8e6', 3499, 3999),
|
||||
('Translucent Tea', '#d2b48c', 3499, 3999),
|
||||
|
||||
-- Additional Colors
|
||||
('Mint', '#98ff98', 3499, 3999),
|
||||
('Champagne', '#f7e7ce', 3499, 3999),
|
||||
('Baby Blue', '#89cff0', 3499, 3999),
|
||||
('Cream', '#fffdd0', 3499, 3999),
|
||||
('Peanut Brown', '#b86f52', 3499, 3999),
|
||||
('Matte Ivory', '#fffff0', 3499, 3999)
|
||||
|
||||
ON CONFLICT (name) DO NOTHING;
|
||||
Reference in New Issue
Block a user