Skip to content
Snippets Groups Projects
Commit 00605cb7 authored by Regis Houssin's avatar Regis Houssin
Browse files

Fix: rename table

parent ff55bf5f
No related branches found
No related tags found
No related merge requests found
-- Copyright (C) 2011 Philippe GRAND <philippe.grand@atoo-net.com>
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 2 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
--
-- $Id$
--
--
-- Ne pas placer de commentaire en fin de ligne, ce fichier est parsé lors
-- de l'install et tous les sigles '--' sont supprimés.
--
--
-- Availability type
--
delete from llx_c_availability;
insert into llx_c_availability (rowid,code,label,active) values (1, 'DSP', 'Disponible', 1);
insert into llx_c_availability (rowid,code,label,active) values (2, 'USM', 'Une semaine', 1);
insert into llx_c_availability (rowid,code,label,active) values (3, 'DSM', 'Deux semaines', 1);
insert into llx_c_availability (rowid,code,label,active) values (4, 'TSM', 'Trois semaines', 1);
......@@ -43,4 +43,14 @@ ALTER TABLE llx_societe ADD COLUMN fk_currency integer DEFAULT 0 AFTER fk_forme_
ALTER TABLE llx_societe_remise MODIFY remise_client double(6,3) DEFAULT 0 NOT NULL;
ALTER TABLE llx_propal ADD COLUMN delivery varchar(60) DEFAULT 0 NULL AFTER fk_adresse_livraison;
create table llx_c_availability
(
rowid integer AUTO_INCREMENT PRIMARY KEY,
code varchar(30) NOT NULL,
label varchar(60) NOT NULL,
active tinyint DEFAULT 1 NOT NULL
)ENGINE=innodb;
ALTER TABLE llx_propal ADD COLUMN fk_availability integer DEFAULT 0 AFTER fk_adresse_livraison;
ALTER TABLE llx_propal CHANGE COLUMN delivery fk_availability integer DEFAULT 0;
ALTER TABLE llx_availability CHANGE COLUMN libelle label integer varchar(60) NOT NULL;
......@@ -15,25 +15,14 @@
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
--
-- $Id: llx_c_delivery.sql,v 1.2 2011/02/24 09:57:04 hregis Exp $
-- $Id$
-- ========================================================================
create table llx_c_delivery
create table llx_c_availability
(
`rowid` int(11) NOT NULL auto_increment,
`code` varchar(30) default NULL,
`libelle` varchar(60) default NULL,
`active` tinyint(4) NOT NULL default '1',
PRIMARY KEY (`rowid`)
)ENGINE=innodb;
--
-- Contenu de la table `llx_c_delivery`
--
INSERT INTO `llx_c_delivery` (`rowid`, `code`, `libelle`, `active`) VALUES
(1, 'DSP', 'Disponible', 1),
(2, 'USM', 'Une semaine', 1),
(3, 'DSM', 'Deux semaines', 1),
(4, 'TSM', 'Trois semaines', 1);
rowid integer AUTO_INCREMENT PRIMARY KEY,
code varchar(30) NOT NULL,
label varchar(60) NOT NULL,
active tinyint DEFAULT 1 NOT NULL
)ENGINE=innodb;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment