Revision 26b288f1
Von Moritz Bunkus vor fast 18 Jahren hinzugefügt
sql/Pg-upgrade2/status_history.sql | ||
---|---|---|
1 |
-- @tag: status_history |
|
2 |
-- @description: Spalten in Tabelle status zum Speichern der history |
|
3 |
-- @depends: release_2_4_1 |
|
4 |
ALTER TABLE status ADD COLUMN id integer; |
|
5 |
UPDATE status SET id = nextval('id'); |
|
6 |
ALTER TABLE status ALTER COLUMN id SET DEFAULT nextval('id'); |
|
7 |
ALTER TABLE status ALTER COLUMN id SET NOT NULL; |
|
8 |
|
|
9 |
ALTER TABLE status ADD COLUMN employee_id integer; |
|
10 |
ALTER TABLE status ADD FOREIGN KEY (employee_id) REFERENCES employee(id); |
|
11 |
|
|
12 |
ALTER TABLE status ADD COLUMN addition text; |
|
13 |
ALTER TABLE status ADD COLUMN what_done text; |
Auch abrufbar als: Unified diff
Anpassung der Tabelle "status", um in ihr die Historie zu speichern.