SQL: moving to the correct location
authorChris Sharp <csharp@georgialibraries.org>
Mon, 2 Nov 2020 19:16:21 +0000 (14:16 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Wed, 15 Sep 2021 14:13:01 +0000 (10:13 -0400)
Open-ILS/src/sql/Pg/upgrade/pines-pre-3.6-upgrade.sql [deleted file]
Open-ILS/src/sql/Pg/version-upgrade/pines-pre-3.6-upgrade.sql [new file with mode: 0644]

diff --git a/Open-ILS/src/sql/Pg/upgrade/pines-pre-3.6-upgrade.sql b/Open-ILS/src/sql/Pg/upgrade/pines-pre-3.6-upgrade.sql
deleted file mode 100644 (file)
index 267f97f..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-begin;
-
-
--- SELECT COUNT(*), workstation, name FROM actor.workstation_setting 
---     GROUP BY 2, 3 HAVING COUNT(*) > 1;  
-
--- we need to dedupe our workstation settings to prepare for the new index
-create table actor.workstation_setting_temp like actor.workstation_setting;
-insert into actor.workstation_setting_temp select * from actor.workstation_setting;
-truncate actor.workstation_setting;
-insert into actor.workstation_setting (select distinct on (workstation, name) id, workstation, name, value from actor.workstation_setting_temp);
-
-commit;
diff --git a/Open-ILS/src/sql/Pg/version-upgrade/pines-pre-3.6-upgrade.sql b/Open-ILS/src/sql/Pg/version-upgrade/pines-pre-3.6-upgrade.sql
new file mode 100644 (file)
index 0000000..267f97f
--- /dev/null
@@ -0,0 +1,13 @@
+begin;
+
+
+-- SELECT COUNT(*), workstation, name FROM actor.workstation_setting 
+--     GROUP BY 2, 3 HAVING COUNT(*) > 1;  
+
+-- we need to dedupe our workstation settings to prepare for the new index
+create table actor.workstation_setting_temp like actor.workstation_setting;
+insert into actor.workstation_setting_temp select * from actor.workstation_setting;
+truncate actor.workstation_setting;
+insert into actor.workstation_setting (select distinct on (workstation, name) id, workstation, name, value from actor.workstation_setting_temp);
+
+commit;