[open-ils-commits] r16917 - in trunk/Open-ILS: examples src/sql/Pg src/sql/Pg/upgrade (scottmk)
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Jul 13 08:44:51 EDT 2010
Author: scottmk
Date: 2010-07-13 08:44:49 -0400 (Tue, 13 Jul 2010)
New Revision: 16917
Added:
trunk/Open-ILS/src/sql/Pg/upgrade/0334.schema.query-limit-offset.sql
Modified:
trunk/Open-ILS/examples/fm_IDL.xml
trunk/Open-ILS/src/sql/Pg/002.schema.config.sql
trunk/Open-ILS/src/sql/Pg/008.schema.query.sql
Log:
Add limit_count and offset_count columns to query.stored_query table.
M Open-ILS/src/sql/Pg/002.schema.config.sql
M Open-ILS/src/sql/Pg/008.schema.query.sql
A Open-ILS/src/sql/Pg/upgrade/0334.schema.query-limit-offset.sql
M Open-ILS/examples/fm_IDL.xml
Modified: trunk/Open-ILS/examples/fm_IDL.xml
===================================================================
--- trunk/Open-ILS/examples/fm_IDL.xml 2010-07-13 11:25:17 UTC (rev 16916)
+++ trunk/Open-ILS/examples/fm_IDL.xml 2010-07-13 12:44:49 UTC (rev 16917)
@@ -6796,6 +6796,8 @@
<field reporter:label="FROM Clause" name="from_clause" reporter:datatype="int"/>
<field reporter:label="WHERE Clause" name="where_clause" reporter:datatype="int"/>
<field reporter:label="HAVING Clause" name="having_clause" reporter:datatype="int"/>
+ <field reporter:label="LIMIT count" name="limit_count" reporter:datatype="int"/>
+ <field reporter:label="OFFSET count" name="offset_count" reporter:datatype="int"/>
</fields>
<links>
</links>
Modified: trunk/Open-ILS/src/sql/Pg/002.schema.config.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/002.schema.config.sql 2010-07-13 11:25:17 UTC (rev 16916)
+++ trunk/Open-ILS/src/sql/Pg/002.schema.config.sql 2010-07-13 12:44:49 UTC (rev 16917)
@@ -68,7 +68,7 @@
install_date TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW()
);
-INSERT INTO config.upgrade_log (version) VALUES ('0333'); -- gmc
+INSERT INTO config.upgrade_log (version) VALUES ('0334'); -- Scott McKellar
CREATE TABLE config.bib_source (
id SERIAL PRIMARY KEY,
Modified: trunk/Open-ILS/src/sql/Pg/008.schema.query.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/008.schema.query.sql 2010-07-13 11:25:17 UTC (rev 16916)
+++ trunk/Open-ILS/src/sql/Pg/008.schema.query.sql 2010-07-13 12:44:49 UTC (rev 16917)
@@ -38,8 +38,10 @@
--DEFERRABLE INITIALLY DEFERRED,
where_clause INT, --REFERENCES query.expression
--DEFERRABLE INITIALLY DEFERRED,
- having_clause INT --REFERENCES query.expression
+ having_clause INT, --REFERENCES query.expression
--DEFERRABLE INITIALLY DEFERRED
+ limit_count INT,
+ offset_count INT
);
-- (Foreign keys to be defined later after other tables are created)
Added: trunk/Open-ILS/src/sql/Pg/upgrade/0334.schema.query-limit-offset.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/upgrade/0334.schema.query-limit-offset.sql (rev 0)
+++ trunk/Open-ILS/src/sql/Pg/upgrade/0334.schema.query-limit-offset.sql 2010-07-13 12:44:49 UTC (rev 16917)
@@ -0,0 +1,11 @@
+BEGIN;
+
+INSERT INTO config.upgrade_log (version) VALUES ('0334'); -- Scott McKellar
+
+ALTER TABLE query.stored_query
+ADD COLUMN limit_count INT;
+
+ALTER TABLE query.stored_query
+ADD COLUMN offset_count INT;
+
+COMMIT;
More information about the open-ils-commits
mailing list