Suppression des articles abonnements
This commit is contained in:
@@ -4,19 +4,15 @@ create table adherent (
|
||||
prenom text,
|
||||
genre text,
|
||||
naissance date,
|
||||
pays text
|
||||
codepostal text
|
||||
);
|
||||
|
||||
\COPY adherent FROM '/tmp/adherent.csv' (FORMAT CSV, header, ENCODING 'UTF8');
|
||||
|
||||
create table famille (
|
||||
code text primary key,
|
||||
famille text,
|
||||
code_parent text
|
||||
);
|
||||
|
||||
\COPY famille FROM '/tmp/famille.csv' (FORMAT CSV, header, ENCODING 'UTF8');
|
||||
|
||||
create table article (
|
||||
code text primary key,
|
||||
article text,
|
||||
@@ -30,8 +26,6 @@ create table article (
|
||||
sommeil int
|
||||
);
|
||||
|
||||
\COPY article FROM '/tmp/article.csv' (FORMAT CSV, header, ENCODING 'UTF8');
|
||||
|
||||
create table ticket (
|
||||
id int primary key,
|
||||
date_ticket timestamp,
|
||||
@@ -39,8 +33,6 @@ create table ticket (
|
||||
mode_rglt int
|
||||
);
|
||||
|
||||
\COPY ticket FROM '/tmp/ticket.csv' (FORMAT CSV, header, ENCODING 'UTF8');
|
||||
|
||||
create table ligne (
|
||||
id int primary key,
|
||||
ticket_id int, --references ticket (id),
|
||||
@@ -48,5 +40,3 @@ create table ligne (
|
||||
prix_unitaire decimal,
|
||||
quantite decimal
|
||||
);
|
||||
|
||||
\COPY ligne FROM '/tmp/ligne.csv' (FORMAT CSV, header, ENCODING 'UTF8');
|
||||
|
||||
Reference in New Issue
Block a user