Revision d527be3a
Von Stephan Köhler vor etwa 19 Jahren hinzugefügt
sql/Pg-upgrade-2.1.1-2.1.2.sql | ||
---|---|---|
67 | 67 |
update invoice set fxsellprice=fxsellpriceold; |
68 | 68 |
alter table invoice drop column fxsellpriceold; |
69 | 69 |
-- |
70 |
alter table invoice add column ordnumber text; |
|
71 |
alter table invoice add column transdate text; |
|
72 |
alter table invoice add column cusordnumber text; |
|
73 |
-- |
|
74 | 70 |
--TABLE oe |
75 | 71 |
alter table oe rename column amount to amountold; |
76 | 72 |
alter table oe add column amount numeric(15,5); |
... | ... | |
88 | 84 |
update orderitems set sellprice=sellpriceold; |
89 | 85 |
alter table orderitems drop column sellpriceold; |
90 | 86 |
-- |
91 |
alter table orderitems add column ordnumber text; |
|
92 |
alter table orderitems add column transdate text; |
|
93 |
alter table orderitems add column cusordnumber text; |
|
94 |
-- |
|
95 | 87 |
--TABLE parts |
96 | 88 |
alter table parts rename column listprice to listpriceold; |
97 | 89 |
alter table parts add column listprice numeric(15,5); |
... | ... | |
245 | 237 |
update defaults set version = '2.1.2', audittrail = 't'; |
246 | 238 |
-- |
247 | 239 |
|
240 |
-- add fields for ordnumber/transdate/cusordnumber in invoice/orderitems (r690 cleanup) |
|
241 |
|
|
242 |
alter table orderitems add column ordnumber text; |
|
243 |
alter table orderitems add column transdate text; |
|
244 |
alter table orderitems add column cusordnumber text; |
|
245 |
alter table invoice add column ordnumber text; |
|
246 |
alter table invoice add column transdate text; |
|
247 |
alter table invoice add column cusordnumber text; |
|
248 |
-- |
|
249 |
|
Auch abrufbar als: Unified diff
Merge von 702 aus unstable:
Aenderungen aus r690 in der upgrade.sql ans Ende verschoben, der besseren Wartbarkeit wegen.