Add wallpaper samples price constraint (#322)

This commit is contained in:
Fredrik Ringqvist
2023-05-02 23:19:52 +02:00
committed by GitHub
parent 7b40add7e1
commit ac938224c3
+5
View File
@@ -0,0 +1,5 @@
-- Remove duplicate check on wallpaper kit price
ALTER TABLE prices_other_products DROP CONSTRAINT prices_other_products_wallpaper_kit_price_check1;
-- Add check on on samples price
ALTER TABLE prices_other_products ADD CONSTRAINT valid_samples_price CHECK (wallpaper_sample_price > 0);