From: erickson Date: Fri, 18 Dec 2009 14:26:48 +0000 (+0000) Subject: add leading 0 for filename consistency X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=c9542be4e92663ca9e24683b3b8c5b1dc22d5480;p=evergreen%2Ftadl.git add leading 0 for filename consistency git-svn-id: svn://svn.open-ils.org/ILS/trunk@15191 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/sql/Pg/upgrade/0119.schema.booking.transits.sql b/Open-ILS/src/sql/Pg/upgrade/0119.schema.booking.transits.sql new file mode 100644 index 0000000000..c3a1814393 --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/0119.schema.booking.transits.sql @@ -0,0 +1,15 @@ +BEGIN; + +INSERT INTO config.upgrade_log (version) VALUES ('0119'); -- miker + +CREATE TABLE action.reservation_transit_copy ( + reservation INT REFERENCES booking.reservation (id) ON DELETE SET NULL DEFERRABLE INITIALLY DEFERRED +) INHERITS (action.transit_copy); +ALTER TABLE action.reservation_transit_copy ADD PRIMARY KEY (id); +ALTER TABLE action.reservation_transit_copy ADD CONSTRAINT artc_tc_fkey FOREIGN KEY (target_copy) REFERENCES booking.resource (id) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED; +CREATE INDEX active_reservation_transit_dest_idx ON "action".reservation_transit_copy (dest); +CREATE INDEX active_reservation_transit_source_idx ON "action".reservation_transit_copy (source); +CREATE INDEX active_reservation_transit_cp_idx ON "action".reservation_transit_copy (target_copy); + +COMMIT; + diff --git a/Open-ILS/src/sql/Pg/upgrade/119.schema.booking.transits.sql b/Open-ILS/src/sql/Pg/upgrade/119.schema.booking.transits.sql deleted file mode 100644 index c3a1814393..0000000000 --- a/Open-ILS/src/sql/Pg/upgrade/119.schema.booking.transits.sql +++ /dev/null @@ -1,15 +0,0 @@ -BEGIN; - -INSERT INTO config.upgrade_log (version) VALUES ('0119'); -- miker - -CREATE TABLE action.reservation_transit_copy ( - reservation INT REFERENCES booking.reservation (id) ON DELETE SET NULL DEFERRABLE INITIALLY DEFERRED -) INHERITS (action.transit_copy); -ALTER TABLE action.reservation_transit_copy ADD PRIMARY KEY (id); -ALTER TABLE action.reservation_transit_copy ADD CONSTRAINT artc_tc_fkey FOREIGN KEY (target_copy) REFERENCES booking.resource (id) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED; -CREATE INDEX active_reservation_transit_dest_idx ON "action".reservation_transit_copy (dest); -CREATE INDEX active_reservation_transit_source_idx ON "action".reservation_transit_copy (source); -CREATE INDEX active_reservation_transit_cp_idx ON "action".reservation_transit_copy (target_copy); - -COMMIT; -