1 2 3 4 5 6 7 8 9
define mw_prefix='{$wgDBprefix}'; /*$mw$*/ BEGIN EXECUTE IMMEDIATE 'ALTER TABLE &mw_prefix.user_groups MODIFY ug_group VARCHAR2(255) NOT NULL'; EXCEPTION WHEN OTHERS THEN IF (SQLCODE = -01442) THEN NULL; ELSE RAISE; END IF; END; /*$mw$*/