Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision e01884e2

Von Tamino Steinert vor 27 Tagen hinzugefügt

  • ID e01884e21eb95d4844c2beb826688fa3e039038b
  • Vorgänger d85c9c95

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

Unterschiede anzeigen:

SL/DB/MetaSetup/VariantPropertyValue.pm
20 20

  
21 21
__PACKAGE__->meta->primary_key_columns([ 'id' ]);
22 22

  
23
__PACKAGE__->meta->unique_keys([ 'variant_property_id', 'value' ]);
24

  
23 25
__PACKAGE__->meta->allow_inline_column_values(1);
24 26

  
25 27
__PACKAGE__->meta->foreign_keys(
sql/Pg-upgrade2/variant_property_unique_values.sql
1
-- @tag: variant_property_unique_values
2
-- @description: Ausprägungen für Eigenschaft eindeutig machen
3
-- @depends: add_variants
4
-- @ignore: 0
5

  
6
ALTER TABLE variant_property_values ADD CONSTRAINT variant_property_unique_values
7
  UNIQUE(variant_property_id, value);

Auch abrufbar als: Unified diff