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
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16917
dcc99617-32d9-48b4-a31d-
7c20da2025e4
<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>
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,
--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)
--- /dev/null
+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;