install_date TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW()
);
-INSERT INTO config.upgrade_log (version) VALUES ('0306'); -- atz
+INSERT INTO config.upgrade_log (version) VALUES ('0308'); -- miker
CREATE TABLE config.bib_source (
id SERIAL PRIMARY KEY,
--- /dev/null
+BEGIN;
+
+INSERT INTO config.upgrade_log (version) VALUES ('0308'); --miker
+
+ALTER TABLE serial.subscription DROP CONSTRAINT subscription_record_entry_fkey;
+ALTER TABLE serial.subscription ADD CONSTRAINT subscription_record_entry_fkey FOREIGN KEY (record_entry) REFERENCES biblio.record_entry (id) DEFERRABLE INITIALLY DEFERRED;
+
+COMMIT;
+