Ignore:
Timestamp:
09/19/17 19:34:41 (7 years ago)
Author:
nanardon
Message:

Allow to set allowed_values insde database instead config, this work only for SQL base

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Bases/Sql/upgrade.pm

    r2090 r2094  
    11371137                } 
    11381138            ], 
    1139         } 
     1139        }, 
     1140        { 
     1141            ver => 28, 
     1142            sql => [ 
     1143                q{ 
     1144                CREATE TABLE attributes_values 
     1145                ( 
     1146                -- Hérité(e) from table revisions:  rev integer NOT NULL DEFAULT nextval('revisions_rev_seq'::regclass), 
     1147                -- Hérité(e) from table revisions:  date timestamp with time zone NOT NULL DEFAULT now(), 
     1148                -- Hérité(e) from table revisions:  "create" timestamp with time zone NOT NULL DEFAULT now(), 
     1149                -- Hérité(e) from table revisions:  ikey integer NOT NULL DEFAULT nextval('ikey_seq'::regclass), 
     1150                otype text NOT NULL, 
     1151                attributes text NOT NULL, 
     1152                value text NOT NULL, 
     1153                CONSTRAINT attributes_values_pkey PRIMARY KEY (ikey) 
     1154                ) 
     1155                INHERITS (revisions) 
     1156                ); 
     1157 
     1158                CREATE UNIQUE INDEX attributes_values_idx 
     1159                ON attributes_values 
     1160                USING btree 
     1161                (otype, attributes, value); 
     1162                } 
     1163            ] 
     1164        }; 
    11401165    ); 
    11411166 
Note: See TracChangeset for help on using the changeset viewer.