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-94f89814c4dfmaster
parent
ef3645d98d
commit
3d4be10ca0
|
|
@ -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
|
-- Once while updated postgres database required, not needed for oracle, it
|
||||||
-- is still/already there (during tests with Camden database).
|
-- 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
|
||||||
|
|
@ -21,17 +21,17 @@
|
||||||
-- For Oracle some magic is necessary. Thanks to James Li at Camden for providing the commands
|
-- For Oracle some magic is necessary. Thanks to James Li at Camden for providing the commands
|
||||||
-- below.
|
-- below.
|
||||||
|
|
||||||
CREATE OR REPLACE PROCEDURE DROP_INDEX_IF_EXISTS(INDEX_NAME IN VARCHAR2) AS
|
-- CREATE OR REPLACE PROCEDURE DROP_INDEX_IF_EXISTS(INDEX_NAME IN VARCHAR2) AS
|
||||||
BEGIN
|
-- BEGIN
|
||||||
EXECUTE IMMEDIATE 'drop index ' || upper(INDEX_NAME);
|
-- EXECUTE IMMEDIATE 'drop index ' || upper(INDEX_NAME);
|
||||||
EXCEPTION
|
-- EXCEPTION
|
||||||
WHEN OTHERS THEN
|
-- WHEN OTHERS THEN
|
||||||
NULL;
|
-- NULL;
|
||||||
END DROP_INDEX_IF_EXISTS;
|
--END DROP_INDEX_IF_EXISTS;
|
||||||
|
|
||||||
-- First: Drop index to avoid an error if it already 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
|
-- create unique index users_lower_screen_name_idx on users
|
||||||
USING btree (lower((screen_name)::text));
|
-- USING btree (lower((screen_name)::text));
|
||||||
Loading…
Reference in New Issue