are mine or not, I'm going to test the master and see if they exist there...)
Signed-off-by: Joseph Lewis <joehms22@gmail.com>
Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Jason Etheridge <jason@esilibrary.com>
CREATE TABLE config.org_unit_setting_type_log (
date_applied TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW() PRIMARY KEY,
- org SERIAL REFERENCES actor.org_unit (id),
+ org SERIAL, --REFERENCES actor.org_unit (id),
original_value TEXT,
new_value TEXT,
field_name TEXT REFERENCES config.org_unit_setting_type (name)
);
-COMMENT ON TABLE config.org_unit_setting_log IS $$
+COMMENT ON TABLE config.org_unit_setting_type_log IS $$
Org Unit setting Logs
This table contains the most recent changes to each setting
ALTER TABLE config.z3950_source ADD CONSTRAINT use_perm_fkey FOREIGN KEY (use_perm) REFERENCES permission.perm_list (id) ON UPDATE CASCADE ON DELETE RESTRICT DEFERRABLE INITIALLY DEFERRED;
+ALTER TABLE config.org_unit_setting_type_log ADD CONSTRAINT config_org_unit_setting_type_log_fkey FORIEGN KEY (org) REFERENCES actor.org_unit (id) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED;
+
COMMIT;