Commit be492a67 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Génération du script SQL de clonage de schéma: correction du nom de colonne...

Génération du script SQL de clonage de schéma: correction du nom de colonne dans la requête SQL des contraintes.
parent a2ae4d9d
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -454,12 +454,12 @@ EOS;
    -- reference constraints
    --
    
    --select 'Z_'||mview_name as ord, DBMS_METADATA.get_ddl ('CONSTRAINT', constraint_name, owner) as sql
    --select 'Z_'||constraint_name as ord, DBMS_METADATA.get_ddl ('CONSTRAINT', constraint_name, owner) as sql
    --from all_constraints
    --where owner = '$schemaName'
    --      and constraint_type = 'P'
    --union all
    select 'Z_'||mview_name as ord, DBMS_METADATA.get_ddl ('REF_CONSTRAINT', constraint_name, owner) as sql
    select 'Z_'||constraint_name as ord, DBMS_METADATA.get_ddl ('REF_CONSTRAINT', constraint_name, owner) as sql
    from all_constraints
    where owner = '$schemaName'
          and constraint_type = 'R'