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>
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
CREATE INDEX by_heading_and_thesaurus ON authority.record_entry (authority.normalize_heading(marc)) WHERE deleted IS FALSE or deleted = FALSE;
+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;