From 2c15eeedb6a0970fd6c147be2419d86f72cf9c4d Mon Sep 17 00:00:00 2001 From: Vincent ASTOLFI Date: Fri, 2 Dec 2022 14:19:05 +0100 Subject: [PATCH] =?UTF-8?q?test=20r=C3=A9solution=20de=20la=20base=20de=20?= =?UTF-8?q?donn=C3=A9es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Sources/API/controller/Controller.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Sources/API/controller/Controller.php b/Sources/API/controller/Controller.php index 2e2dd03..3725f68 100644 --- a/Sources/API/controller/Controller.php +++ b/Sources/API/controller/Controller.php @@ -5,7 +5,17 @@ class Controller{ function __construct($url){ global $dsn, $usr, $mdp; $con = new Connection($dsn, $usr, $mdp); - $query ='CREATE TABLE Devise + $query ='DROP TABLE Planification; + DROP TABLE IF EXISTS Opération; + DROP TABLE IF EXISTS Echeancier; + DROP TABLE IF EXISTS Compte; + DROP TABLE IF EXISTS InscrBanque; + DROP TABLE IF EXISTS Banque; + DROP TABLE IF EXISTS DeviseInscrit; + DROP TABLE IF EXISTS Inscrit; + DROP TABLE IF EXISTS Devise; + + CREATE TABLE Devise ( id char(3) PRIMARY KEY, nom varchar(20)