From 0ee113337badc47a559d2758cece064c94e6fdee Mon Sep 17 00:00:00 2001 From: Arman KYOKCHAN Date: Tue, 23 Apr 2013 05:44:09 +0000 Subject: [PATCH] issue #0001572: database changes --- .../_sql/structure/commandes_giants.sql | 1 + .../config/_sql/structure/rapports_giants.sql | 25 ++++++++++--------- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/scripts/build/config/_sql/structure/commandes_giants.sql b/scripts/build/config/_sql/structure/commandes_giants.sql index 0d248a659..0eba0c6c6 100644 --- a/scripts/build/config/_sql/structure/commandes_giants.sql +++ b/scripts/build/config/_sql/structure/commandes_giants.sql @@ -4,6 +4,7 @@ CREATE TABLE IF NOT EXISTS `commandes_giants` ( `id` int(8) NOT NULL AUTO_INCREMENT, + `rapportId` int(8) NOT NULL, `login` varchar(255) NOT NULL, `date` date NOT NULL, `typeReport` enum('FU','CO','CR','FL','NO','UR','FA') NOT NULL, diff --git a/scripts/build/config/_sql/structure/rapports_giants.sql b/scripts/build/config/_sql/structure/rapports_giants.sql index 90839f194..08bf83d8e 100644 --- a/scripts/build/config/_sql/structure/rapports_giants.sql +++ b/scripts/build/config/_sql/structure/rapports_giants.sql @@ -1,13 +1,14 @@ --- --- Structure de la table `rapports_giants` --- - -CREATE TABLE IF NOT EXISTS `rapports_giants` ( - `id` int(8) NOT NULL AUTO_INCREMENT, - `companyId` varchar(255) NOT NULL, - `date` date NOT NULL, - `pays` enum('FR','ES','BE','NL','UK','DE') NOT NULL, - `type` enum('FU','CO','CR','FL') DEFAULT NULL, - `report` blob NOT NULL, - PRIMARY KEY (`id`) +-- +-- Structure de la table `rapports_giants` +-- + +CREATE TABLE IF NOT EXISTS `rapports_giants` ( + `id` int(8) NOT NULL AUTO_INCREMENT, + `companyId` varchar(255) NOT NULL, + `date` date NOT NULL, + `pays` enum('FR','ES','BE','NL','UK','DE') NOT NULL, + `type` enum('FU','CO','CR','FL') DEFAULT NULL, + `lang` enum('en','fr') CHARACTER SET utf8 NOT NULL, + `report` longtext NOT NULL, + PRIMARY KEY (`id`) ) DEFAULT CHARSET=utf8; \ No newline at end of file