Database change to support sorting of parts labels
authorDan Pearl <dpearl@cwmars.org>
Wed, 6 Feb 2013 21:21:47 +0000 (16:21 -0500)
committerDan Pearl <dpearl@cwmars.org>
Tue, 19 Mar 2013 18:10:25 +0000 (14:10 -0400)
Open-ILS/src/sql/Pg/parts-sorting.sql [new file with mode: 0644]

diff --git a/Open-ILS/src/sql/Pg/parts-sorting.sql b/Open-ILS/src/sql/Pg/parts-sorting.sql
new file mode 100644 (file)
index 0000000..b0858c0
--- /dev/null
@@ -0,0 +1,19 @@
+/*
+ * Copyright (C) 2012  C/W MARS Inc.
+ * Daniel Pearl <dpearl@cwmars.org>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ */
+BEGIN;
+            ALTER TABLE biblio.monograph_part ADD COLUMN sort_order INTEGER DEFAULT 0; 
+COMMIT;
+