Revision faa0e892
Von Stephan Köhler vor etwa 19 Jahren hinzugefügt
sql/Pg-upgrade-2.1.1-2.1.2.sql | ||
---|---|---|
132 | 132 |
alter table shipto add column shiptodepartment_1 varchar(75); |
133 | 133 |
alter table shipto add column shiptodepartment_2 varchar(75); |
134 | 134 |
|
135 |
|
|
136 |
|
|
135 | 137 |
-- Addon for business |
136 | 138 |
alter table business add column salesman boolean; |
137 | 139 |
alter table business alter column salesman set default 'false'; |
... | ... | |
183 | 185 |
alter table vendor drop column account_number; |
184 | 186 |
alter table vendor rename temp_account_number to account_number; |
185 | 187 |
|
186 |
update defaults set version = '2.1.2'; |
|
188 |
-- audit |
|
189 |
alter table defaults add column audittrail bool; |
|
190 |
CREATE TABLE audittrail ( |
|
191 |
trans_id int, |
|
192 |
tablename text, |
|
193 |
reference text, |
|
194 |
formname text, |
|
195 |
action text, |
|
196 |
transdate timestamp default current_timestamp, |
|
197 |
employee_id int |
|
198 |
); |
|
199 |
|
|
200 |
update defaults set version = '2.1.2', audittrail = 't'; |
|
187 | 201 |
-- |
188 | 202 |
|
sql/lx-office.sql | ||
---|---|---|
109 | 109 |
"rfqnumber" text, |
110 | 110 |
"customernumber" text, |
111 | 111 |
"vendornumber" text, |
112 |
"audittrail" bool default 'f', |
|
112 | 113 |
"articlenumber" text, |
113 | 114 |
"servicenumber" text, |
114 | 115 |
"itime" timestamp DEFAULT now(), |
115 | 116 |
"mtime" timestamp |
116 | 117 |
); |
117 |
INSERT INTO defaults (version) VALUES ('2.1.2'); |
|
118 |
INSERT INTO defaults (version,audittrail) VALUES ('2.1.2', 't'); |
|
119 |
|
|
120 |
CREATE TABLE audittrail ( |
|
121 |
"trans_id" int, |
|
122 |
"tablename" text, |
|
123 |
"reference" text, |
|
124 |
"formname" text, |
|
125 |
"action" text, |
|
126 |
"transdate" timestamp default current_timestamp, |
|
127 |
"employee_id" int |
|
128 |
); |
|
118 | 129 |
|
119 | 130 |
CREATE TABLE "acc_trans" ( |
120 | 131 |
"trans_id" integer, |
Auch abrufbar als: Unified diff
Merge von 584 aus unstable: Datenbankschema erweitert fuer Audit Informationen