Changes to support other databases than mysql

This commit is contained in:
Laurent Destailleur
2008-09-28 20:41:42 +00:00
parent 276eec042c
commit cf8de2fefe
11 changed files with 24 additions and 42 deletions

View File

@@ -33,7 +33,7 @@ create table llx_adherent
login varchar(50) NOT NULL, -- login
pass varchar(50), -- password
fk_adherent_type smallint,
morphy enum('mor','phy') NOT NULL, -- personne morale / personne physique
morphy varchar(3) NOT NULL, -- personne morale / personne physique
societe varchar(50),
adresse text,
cp varchar(30),

View File

@@ -29,8 +29,8 @@ create table llx_adherent_type
tms timestamp,
statut smallint NOT NULL DEFAULT 0,
libelle varchar(50) NOT NULL,
cotisation enum('yes','no') NOT NULL DEFAULT 'yes',
vote enum('yes','no') NOT NULL DEFAULT 'yes',
cotisation varchar(3) NOT NULL DEFAULT 'yes',
vote varchar(3) NOT NULL DEFAULT 'yes',
note text,
mail_valid text -- mail envoye a la validation
)type=innodb;

View File

@@ -25,7 +25,7 @@ create table llx_c_paper_format
label varchar(50) NOT NULL,
width float(6,2) DEFAULT 0, -- Largeur du papier
height float(6,2) DEFAULT 0, -- Hauteur du papier
unit enum('mm','cm','point','inch') NOT NULL, -- Unit<69> de mesure
unit varchar(5) NOT NULL, -- Unit<69> de mesure
active tinyint DEFAULT 1 NOT NULL
)type=innodb;

View File

@@ -29,7 +29,7 @@ create table llx_const
rowid integer AUTO_INCREMENT PRIMARY KEY,
name varchar(255),
value text, -- max 65535 caracteres
type enum('yesno','texte','chaine'),
type varchar(6),
visible tinyint DEFAULT 1 NOT NULL,
note text,
tms timestamp,

View File

@@ -25,11 +25,11 @@ CREATE TABLE `llx_menu` (
menu_handler varchar(16) NOT NULL, -- Menu handler name
module varchar(64), -- Module name if record is added by a module
type enum('top','left') NOT NULL, -- Menu top or left
type varchar(4) NOT NULL, -- Menu top or left
mainmenu varchar(100) NOT NULL, -- Name family/module (home, companies, ...)
fk_menu int(11) NOT NULL, -- 0 or Id of mother menu line
position integer NOT NULL, -- Sort order of entry
position integer NOT NULL, -- Sort order of entry
url varchar(255) NOT NULL, -- Relative (or absolute) url to go
target varchar(100) NULL, -- Target of Url link

View File

@@ -25,6 +25,6 @@ create table llx_notify
daten datetime, -- date de la notification
fk_action integer NOT NULL,
fk_contact integer NOT NULL,
objet_type enum('ficheinter','facture','propale'),
objet_type varchar(24) NOT NULL,
objet_id integer NOT NULL
)type=innodb;

View File

@@ -26,6 +26,6 @@ create table llx_projet_task
title varchar(255),
duration_effective real NOT NULL,
fk_user_creat integer, -- createur
statut enum('open','closed') DEFAULT 'open',
statut varchar(6) DEFAULT 'open',
note text
)type=innodb;

View File

@@ -22,7 +22,7 @@ create table llx_projet_task_actors
(
fk_projet_task integer NOT NULL,
fk_user integer NOT NULL,
role enum ('admin','read','acto','info') DEFAULT 'admin',
role varchar(5) DEFAULT 'admin',
UNIQUE (fk_projet_task, fk_user)
)type=innodb;

View File

@@ -25,7 +25,7 @@ create table llx_rights_def
module varchar(12),
perms varchar(50),
subperms varchar(50),
type enum('r','w','m','d','a'),
type varchar(1),
bydefault tinyint DEFAULT 0
)type=innodb;

View File

@@ -1,31 +0,0 @@
-- ========================================================================
-- Copyright (C) 2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
--
-- 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$
-- ========================================================================
--
-- Le type InnoDB n'est pas n<>cessaire pour cette table
--
create table llx_societe_consult
(
fk_soc integer,
fk_user integer,
datec timestamp,
action enum('w','r')
)type=innodb;