Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision e01884e2

Von Tamino Steinert vor 11 Monaten hinzugefügt

Varianten: Wert für Ausprägung nur einmal pro Eigenschaft

Unterschiede anzeigen:

SL/DB/MetaSetup/VariantPropertyValue.pm
__PACKAGE__->meta->primary_key_columns([ 'id' ]);
__PACKAGE__->meta->unique_keys([ 'variant_property_id', 'value' ]);
__PACKAGE__->meta->allow_inline_column_values(1);
__PACKAGE__->meta->foreign_keys(
sql/Pg-upgrade2/variant_property_unique_values.sql
-- @tag: variant_property_unique_values
-- @description: Ausprägungen für Eigenschaft eindeutig machen
-- @depends: add_variants
-- @ignore: 0
ALTER TABLE variant_property_values ADD CONSTRAINT variant_property_unique_values
UNIQUE(variant_property_id, value);

Auch abrufbar als: Unified diff