Skip to content

Commit

Permalink
added a migration to create a codefi enterprises table
Browse files Browse the repository at this point in the history
  • Loading branch information
cmarcoin committed Jun 11, 2024
1 parent a18c4e1 commit 759d231
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions migrations/240611_0_create_codefi_entreprises.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
create sequence codefi_entreprise_id;
create table codefi_entreprises (
id int primary key default nextval('codefi_entreprise_id'),
libelle text,
siren text,
code_departement text,
date_add timestamp default current_timestamp
);

create index idx_codefi_entreprises_siren on codefi_entreprises (siren);

create index idx_codefi_entreprises_siren_libelle on codefi_entreprises (siren, libelle);

0 comments on commit 759d231

Please sign in to comment.