27 lines
1.2 KiB
PL/PgSQL
27 lines
1.2 KiB
PL/PgSQL
-- This script was generated by the Schema Diff utility in pgAdmin 4.
|
|
-- For the circular dependencies, the order in which Schema Diff writes the objects is not very sophisticated
|
|
-- and may require manual changes to the script to ensure changes are applied in the correct order.
|
|
-- Please report an issue for any failure with the reproduction steps.
|
|
BEGIN;
|
|
ALTER TABLE IF EXISTS kundenverwaltung.kunde
|
|
ADD COLUMN anmerkung character varying(200) COLLATE pg_catalog."default";
|
|
|
|
ALTER TABLE IF EXISTS kundenverwaltung.kunde
|
|
ADD COLUMN aufgabe_count numeric(2, 0);
|
|
ALTER TABLE IF EXISTS kundenverwaltung.aufgabe
|
|
ADD COLUMN aktive boolean DEFAULT true;
|
|
ALTER TABLE IF EXISTS kundenverwaltung.auftrag
|
|
ADD COLUMN aufgabe_erledigt boolean;
|
|
ALTER TABLE kundenverwaltung.wsfach
|
|
ALTER COLUMN gewaschen TYPE timestamp without time zone ;
|
|
|
|
ALTER TABLE IF EXISTS kundenverwaltung.wsfach
|
|
ADD COLUMN aufgabe_id numeric(10, 0);
|
|
ALTER TABLE IF EXISTS kundenverwaltung.wsfach
|
|
ADD CONSTRAINT aufgabe_fk FOREIGN KEY (aufgabe_id)
|
|
REFERENCES kundenverwaltung.aufgabe (aufgabe_id) MATCH SIMPLE
|
|
ON UPDATE NO ACTION
|
|
ON DELETE NO ACTION
|
|
NOT VALID;
|
|
|
|
END; |