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

Script SQL oublié pour la v13.3.0

parent 044b01f8
Loading
Loading
Loading
Loading
+32 −0
Changes for doc/release-notes/v13/13.3.0/02_odf.sql: 32 added lines, 0 removed lines.
Original line number Diff line number Diff line

create table tmp_odf_objet_maquette
(
    id                    bigserial,
    insert_date           timestamp(0) default ('now'::text)::timestamp without time zone,
    source_id             bigint                                                             not null,
    source_code           varchar(128)                                                       not null,

    type_objet_maquette varchar(64) not null,
    type_objet_formation varchar(64) not null,
    code varchar(64) not null,
    espace_libelle varchar(128) not null,
    mutualise boolean not null,
    libelle varchar(128) not null,
    libelle_long varchar(256) not null,

    histo_creation        timestamp(0) default ('now'::text)::timestamp(0) without time zone not null,
    histo_createur_id     bigint                                                             not null,
    histo_modification    timestamp(0),
    histo_modificateur_id bigint,
    histo_destruction     timestamp(0),
    histo_destructeur_id  bigint
);

create index tmp_odf_objet_maquette_source_code_index
    on tmp_odf_objet_maquette (source_code);

create index tmp_odf_objet_maquette_source_id_index
    on tmp_odf_objet_maquette (source_id);

create unique index tmp_odf_objet_maquette_unique_index
    on tmp_odf_objet_maquette (source_id, source_code);