Commit 7a2d2b9f authored by Laurent Lécluse's avatar Laurent Lécluse
Browse files

Eradication de presque tous les CLOB

parent c6fcf0c6
......@@ -5801,3 +5801,42 @@ FROM (
UNION ALL SELECT 'cloture' c, 'edition-services-avec-mep' p, 'Modification des services après clôture et mises en paiement' l FROM dual
) t1;
-- Suppression de l'usage des CLOBS partout où c'est possible
ALTER TABLE PARAMETRE ADD (NVALEUR VARCHAR2(200) );
ALTER TABLE PARAMETRE ADD (NDESCRIPTION VARCHAR2(500) );
UPDATE parametre SET nvaleur = valeur, ndescription = description;
UPDATE parametre SET valeur = null, description = null;
ALTER TABLE PARAMETRE DROP COLUMN VALEUR;
ALTER TABLE PARAMETRE DROP COLUMN DESCRIPTION;
ALTER TABLE PARAMETRE RENAME COLUMN NVALEUR TO VALEUR;
ALTER TABLE PARAMETRE RENAME COLUMN NDESCRIPTION TO DESCRIPTION;
ALTER TABLE FORMULE_TEST_INTERVENANT DROP COLUMN DEBUG_INFO;
ALTER TABLE FORMULE_TEST_VOLUME_HORAIRE DROP COLUMN DEBUG_INFO;
ALTER TABLE FORMULE_TEST_INTERVENANT ADD (DEBUG_INFO VARCHAR2(4000) );
ALTER TABLE FORMULE_TEST_VOLUME_HORAIRE ADD (DEBUG_INFO VARCHAR2(4000) );
ALTER TABLE MODIFICATION_SERVICE_DU ADD (NCOMMENTAIRES VARCHAR2(4000) );
UPDATE MODIFICATION_SERVICE_DU SET NCOMMENTAIRES = COMMENTAIRES;
ALTER TABLE MODIFICATION_SERVICE_DU DROP COLUMN COMMENTAIRES;
ALTER TABLE MODIFICATION_SERVICE_DU RENAME COLUMN NCOMMENTAIRES TO COMMENTAIRES;
ALTER TABLE SERVICE ADD (NDESCRIPTION VARCHAR2(4000) );
/
alter trigger "OSE"."SERVICE_CK" disable
/
UPDATE SERVICE SET NDESCRIPTION = DESCRIPTION;
ALTER TABLE SERVICE DROP COLUMN DESCRIPTION;
ALTER TABLE SERVICE RENAME COLUMN NDESCRIPTION TO DESCRIPTION;
/
alter trigger "OSE"."SERVICE_CK" enable
/
ALTER TABLE SYNC_LOG ADD (NMESSAGE VARCHAR2(4000) );
UPDATE SYNC_LOG SET NMESSAGE = MESSAGE;
ALTER TABLE SYNC_LOG DROP COLUMN MESSAGE;
ALTER TABLE SYNC_LOG RENAME COLUMN NMESSAGE TO MESSAGE;
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment