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;
9 ALTER TABLE status ADD COLUMN employee_id integer;
10 ALTER TABLE status ADD FOREIGN KEY (employee_id) REFERENCES employee(id);
12 ALTER TABLE status ADD COLUMN addition text;
13 ALTER TABLE status ADD COLUMN what_done text;