Small refinement, Oracle or CCM seams to include SQL files for Oracle even if the line with the include is commented out.

git-svn-id: https://svn.libreccm.org/ccm/trunk@3050 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2014-12-14 09:26:50 +00:00
parent ef3645d98d
commit 3d4be10ca0
2 changed files with 11 additions and 11 deletions

View File

@ -26,4 +26,4 @@ PROMPT Red Hat Enterprise CORE 6.6.0 -> 6.6.1 Upgrade Script (Oracle)
-- Once while updated postgres database required, not needed for oracle, it
-- is still/already there (during tests with Camden database).
-- @@ oracle-se/6.6.0-6.6.1/recreate_users_index.sql
-- oracle-se/6.6.0-6.6.1/recreate_users_index.sql

View File

@ -21,17 +21,17 @@
-- For Oracle some magic is necessary. Thanks to James Li at Camden for providing the commands
-- below.
CREATE OR REPLACE PROCEDURE DROP_INDEX_IF_EXISTS(INDEX_NAME IN VARCHAR2) AS
BEGIN
EXECUTE IMMEDIATE 'drop index ' || upper(INDEX_NAME);
EXCEPTION
WHEN OTHERS THEN
NULL;
END DROP_INDEX_IF_EXISTS;
-- CREATE OR REPLACE PROCEDURE DROP_INDEX_IF_EXISTS(INDEX_NAME IN VARCHAR2) AS
-- BEGIN
-- EXECUTE IMMEDIATE 'drop index ' || upper(INDEX_NAME);
-- EXCEPTION
-- WHEN OTHERS THEN
-- NULL;
--END DROP_INDEX_IF_EXISTS;
-- First: Drop index to avoid an error if it already exists
drop_index_if_exists('users_lower_screen_name_idx') ;
-- drop_index_if_exists('users_lower_screen_name_idx') ;
create unique index users_lower_screen_name_idx on users
USING btree (lower((screen_name)::text));
-- create unique index users_lower_screen_name_idx on users
-- USING btree (lower((screen_name)::text));