Revision 9cac71b2
Von Philip Reetz vor etwa 19 Jahren hinzugefügt
sql/Pg-upgrade-2.1.1-2.1.2.sql | ||
---|---|---|
152 | 152 |
alter table ap alter invnumber set NOT NULL; |
153 | 153 |
alter table oe alter ordnumber set NOT NULL; |
154 | 154 |
|
155 |
alter table gl alter id set NOT NULL; |
|
156 |
alter table chart alter id set NOT NULL; |
|
157 |
alter table parts alter id set NOT NULL; |
|
158 |
alter table invoice alter id set NOT NULL; |
|
159 |
alter table vendor alter id set NOT NULL; |
|
160 |
alter table customer alter id set NOT NULL; |
|
161 |
alter table contacts alter cp_id set NOT NULL; |
|
162 |
alter table ar alter id set NOT NULL; |
|
163 |
alter table ap alter id set NOT NULL; |
|
164 |
alter table oe alter id set NOT NULL; |
|
165 |
alter table employee alter id set NOT NULL; |
|
166 |
alter table warehouse alter id set NOT NULL; |
|
167 |
alter table business alter id set NOT NULL; |
|
168 |
alter table license alter id set NOT NULL; |
|
169 |
alter table orderitems alter id set NOT NULL; |
|
170 |
|
|
155 | 171 |
alter table gl add primary key (id); |
156 | 172 |
alter table chart add primary key (id); |
157 | 173 |
alter table parts add primary key (id); |
Auch abrufbar als: Unified diff
Spalten die Primarykey werden sollen vorher auf not null setzen