forked from Wavyzz/dolibarr
Nettoyage script sql pour release
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
English Dolibarr changelog
|
English Dolibarr changelog
|
||||||
|
|
||||||
|
|
||||||
***** Changelog for 2.2 compared to 2.1 *****
|
***** Changelog for 2.2 compared to 2.1 *****
|
||||||
|
|
||||||
- Add more statistics on main page.
|
- Add more statistics on main page.
|
||||||
|
|||||||
@@ -144,7 +144,9 @@ foreach my $file (keys %filelist) {
|
|||||||
|
|
||||||
# comments or empty lines
|
# comments or empty lines
|
||||||
if (/^-- \$Id/) {
|
if (/^-- \$Id/) {
|
||||||
next;
|
$_ =~ s/\$//g;
|
||||||
|
print OUT $_;
|
||||||
|
next;
|
||||||
}
|
}
|
||||||
# comments or empty lines
|
# comments or empty lines
|
||||||
if (/^#/ || /^$/ || /^--/) {
|
if (/^#/ || /^$/ || /^--/) {
|
||||||
|
|||||||
@@ -1,31 +1,30 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ============================================================================
|
-- ============================================================================
|
||||||
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
-- Copyright (C) 2005-2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
-- Copyright (C) 2005-2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- Id: llx_accountingaccount.key.sql,v 1.2 2007/12/02 21:51:12 eldy Exp
|
||||||
-- $Source$
|
-- ===========================================================================
|
||||||
-- ===========================================================================
|
|
||||||
|
|
||||||
|
ALTER TABLE llx_accountingaccount ADD INDEX idx_accountingaccount_fk_pcg_version (fk_pcg_version);
|
||||||
ALTER TABLE llx_accountingaccount ADD INDEX idx_accountingaccount_fk_pcg_version (fk_pcg_version);
|
|
||||||
|
|
||||||
|
ALTER TABLE llx_accountingaccount ADD CONSTRAINT fk_accountingaccount_fk_pcg_version FOREIGN KEY (fk_pcg_version) REFERENCES llx_accountingsystem (pcg_version);
|
||||||
ALTER TABLE llx_accountingaccount ADD CONSTRAINT fk_accountingaccount_fk_pcg_version FOREIGN KEY (fk_pcg_version) REFERENCES llx_accountingsystem (pcg_version);
|
|
||||||
|
|||||||
@@ -1,35 +1,34 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ============================================================================
|
-- ============================================================================
|
||||||
-- Copyright (C) 2004-2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
-- Copyright (C) 2004-2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- Id: llx_accountingaccount.sql,v 1.2 2007/12/02 21:51:12 eldy Exp
|
||||||
-- $Source$
|
-- ============================================================================
|
||||||
-- ============================================================================
|
|
||||||
|
create table llx_accountingaccount
|
||||||
create table llx_accountingaccount
|
(
|
||||||
(
|
rowid SERIAL PRIMARY KEY,
|
||||||
rowid SERIAL PRIMARY KEY,
|
"fk_pcg_version" varchar(12) NOT NULL,
|
||||||
"fk_pcg_version" varchar(12) NOT NULL,
|
"pcg_type" varchar(20) NOT NULL,
|
||||||
"pcg_type" varchar(20) NOT NULL,
|
"pcg_subtype" varchar(20) NOT NULL,
|
||||||
"pcg_subtype" varchar(20) NOT NULL,
|
"label" varchar(128) NOT NULL,
|
||||||
"label" varchar(128) NOT NULL,
|
"account_number" varchar(20) NOT NULL,
|
||||||
"account_number" varchar(20) NOT NULL,
|
"account_parent" varchar(20)
|
||||||
"account_parent" varchar(20)
|
);
|
||||||
);
|
|
||||||
|
|||||||
@@ -1,32 +1,31 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ============================================================================
|
-- ============================================================================
|
||||||
-- Copyright (C) 2004-2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
-- Copyright (C) 2004-2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- Id: llx_accountingdebcred.sql,v 1.2 2007/12/02 21:51:12 eldy Exp
|
||||||
-- $Source$
|
-- ============================================================================
|
||||||
-- ============================================================================
|
|
||||||
|
create table llx_accountingdebcred
|
||||||
create table llx_accountingdebcred
|
(
|
||||||
(
|
"fk_transaction" integer NOT NULL,
|
||||||
"fk_transaction" integer NOT NULL,
|
"fk_account" integer NOT NULL,
|
||||||
"fk_account" integer NOT NULL,
|
"amount" real NOT NULL,
|
||||||
"amount" real NOT NULL,
|
"direction" varchar(1) NOT NULL
|
||||||
"direction" varchar(1) NOT NULL
|
);
|
||||||
);
|
|
||||||
|
|||||||
@@ -1,35 +1,34 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ============================================================================
|
-- ============================================================================
|
||||||
-- Copyright (C) 2004-2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
-- Copyright (C) 2004-2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- Id: llx_accountingsystem.sql,v 1.3 2007/12/02 21:51:12 eldy Exp
|
||||||
-- $Source$
|
-- ============================================================================
|
||||||
-- ============================================================================
|
|
||||||
|
create table llx_accountingsystem
|
||||||
create table llx_accountingsystem
|
(
|
||||||
(
|
pcg_version varchar(12) PRIMARY KEY,
|
||||||
pcg_version varchar(12) PRIMARY KEY,
|
"fk_pays" integer NOT NULL,
|
||||||
"fk_pays" integer NOT NULL,
|
"label" varchar(128) NOT NULL,
|
||||||
"label" varchar(128) NOT NULL,
|
"datec" varchar(12) NOT NULL,
|
||||||
"datec" varchar(12) NOT NULL,
|
"fk_author" varchar(20),
|
||||||
"fk_author" varchar(20),
|
"tms" timestamp,
|
||||||
"tms" timestamp,
|
"active" smallint DEFAULT 0
|
||||||
"active" smallint DEFAULT 0
|
);
|
||||||
);
|
|
||||||
|
|||||||
@@ -1,37 +1,36 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ============================================================================
|
-- ============================================================================
|
||||||
-- Copyright (C) 2004-2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
-- Copyright (C) 2004-2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- Id: llx_accountingtransaction.sql,v 1.3 2007/12/02 21:51:12 eldy Exp
|
||||||
-- $Source$
|
-- ============================================================================
|
||||||
-- ============================================================================
|
|
||||||
|
create table llx_accountingtransaction
|
||||||
create table llx_accountingtransaction
|
(
|
||||||
(
|
rowid SERIAL PRIMARY KEY,
|
||||||
rowid SERIAL PRIMARY KEY,
|
"label" varchar(128) NOT NULL,
|
||||||
"label" varchar(128) NOT NULL,
|
"datec" date NOT NULL,
|
||||||
"datec" date NOT NULL,
|
"fk_author" varchar(20) NOT NULL,
|
||||||
"fk_author" varchar(20) NOT NULL,
|
"tms" timestamp,
|
||||||
"tms" timestamp,
|
"fk_facture" integer,
|
||||||
"fk_facture" integer,
|
"fk_facture_fourn" integer,
|
||||||
"fk_facture_fourn" integer,
|
"fk_paiement" integer,
|
||||||
"fk_paiement" integer,
|
"fk_paiement_fourn" integer
|
||||||
"fk_paiement_fourn" integer
|
);
|
||||||
);
|
|
||||||
|
|||||||
@@ -1,37 +1,35 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ===================================================================
|
-- ===================================================================
|
||||||
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
|
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
|
||||||
-- Copyright (C) 2004 Guillaume Delecourt <guillaume.delecourt@opensides.be>
|
-- Copyright (C) 2004 Guillaume Delecourt <guillaume.delecourt@opensides.be>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- Id: llx_action_def.sql,v 1.7 2007/12/02 21:51:12 eldy Exp
|
||||||
-- $Source$
|
-- ===================================================================
|
||||||
--
|
|
||||||
-- ===================================================================
|
create table llx_action_def
|
||||||
|
(
|
||||||
create table llx_action_def
|
rowid integer NOT NULL PRIMARY KEY,
|
||||||
(
|
"code" varchar(28) UNIQUE NOT NULL,
|
||||||
rowid integer NOT NULL PRIMARY KEY,
|
"tms" timestamp,
|
||||||
"code" varchar(24) UNIQUE NOT NULL,
|
"titre" varchar(255) NOT NULL,
|
||||||
"tms" timestamp,
|
"description" text,
|
||||||
"titre" varchar(255) NOT NULL,
|
"objet_type" varchar(10) CHECK (objet_type IN ('ficheinter','facture','propale','mailing'))
|
||||||
"description" text,
|
);
|
||||||
"objet_type" varchar(10) CHECK (objet_type IN ('ficheinter','facture','propale','mailing'))
|
|
||||||
);
|
|
||||||
|
|||||||
@@ -1,31 +1,29 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ============================================================================
|
-- ============================================================================
|
||||||
-- Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
-- Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- Id: llx_actioncomm.key.sql,v 1.2 2007/12/02 21:51:12 eldy Exp
|
||||||
-- $Source$
|
-- ===========================================================================
|
||||||
--
|
|
||||||
-- ===========================================================================
|
|
||||||
|
ALTER TABLE llx_actioncomm ADD INDEX idx_actioncomm_datea (datea);
|
||||||
|
ALTER TABLE llx_actioncomm ADD INDEX idx_actioncomm_fk_soc (fk_soc);
|
||||||
ALTER TABLE llx_actioncomm ADD INDEX idx_actioncomm_datea (datea);
|
ALTER TABLE llx_actioncomm ADD INDEX idx_actioncomm_fk_contact (fk_contact);
|
||||||
ALTER TABLE llx_actioncomm ADD INDEX idx_actioncomm_fk_soc (fk_soc);
|
ALTER TABLE llx_actioncomm ADD INDEX idx_actioncomm_fk_facture (fk_facture);
|
||||||
ALTER TABLE llx_actioncomm ADD INDEX idx_actioncomm_fk_contact (fk_contact);
|
|
||||||
ALTER TABLE llx_actioncomm ADD INDEX idx_actioncomm_fk_facture (fk_facture);
|
|
||||||
|
|||||||
@@ -1,64 +1,62 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ========================================================================
|
-- ========================================================================
|
||||||
-- Copyright (C) 2001-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
-- Copyright (C) 2001-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
-- Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
-- Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- This program is free software; you can redistribute it and/or modify
|
||||||
-- $Source$
|
-- it under the terms of the GNU General Public License as published by
|
||||||
--
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- (at your option) any later version.
|
||||||
-- it under the terms of the GNU General Public License as published by
|
--
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- (at your option) any later version.
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
--
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- GNU General Public License for more details.
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
--
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- GNU General Public License for more details.
|
-- along with this program; if not, write to the Free Software
|
||||||
--
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
-- You should have received a copy of the GNU General Public License
|
--
|
||||||
-- along with this program; if not, write to the Free Software
|
-- Id: llx_actioncomm.sql,v 1.11 2007/12/02 21:51:12 eldy Exp
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
--
|
||||||
--
|
-- Actions commerciales
|
||||||
-- Actions commerciales
|
-- ========================================================================
|
||||||
--
|
|
||||||
-- ========================================================================
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
create table llx_actioncomm
|
||||||
|
(
|
||||||
create table llx_actioncomm
|
id SERIAL PRIMARY KEY,
|
||||||
(
|
"datec" timestamp, -- date creation
|
||||||
id SERIAL PRIMARY KEY,
|
"datep" timestamp, -- date debut planifiee
|
||||||
"datec" timestamp, -- date creation
|
"datep2" timestamp, -- date fin planifiee si action non ponctuelle
|
||||||
"datep" timestamp, -- date debut planifiee
|
"datea" timestamp, -- date debut realisation
|
||||||
"datep2" timestamp, -- date fin planifiee si action non ponctuelle
|
"datea2" timestamp, -- date fin realisation si action non ponctuelle
|
||||||
"datea" timestamp, -- date debut realisation
|
"tms" timestamp, -- date modif
|
||||||
"datea2" timestamp, -- date fin realisation si action non ponctuelle
|
"fk_action" integer, -- type de l'action
|
||||||
"tms" timestamp, -- date modif
|
"label" varchar(50) NOT NULL, -- libelle de l'action
|
||||||
"fk_action" integer, -- type de l'action
|
"fk_project" integer,
|
||||||
"label" varchar(50) NOT NULL, -- libelle de l'action
|
"fk_soc" integer,
|
||||||
"fk_project" integer,
|
"fk_contact" integer,
|
||||||
"fk_soc" integer,
|
"fk_parent" integer NOT NULL default 0,
|
||||||
"fk_contact" integer,
|
"fk_user_action" integer, -- id de la personne qui doit effectuer l'action
|
||||||
"fk_parent" integer NOT NULL default 0,
|
"fk_user_author" integer, -- id de la personne qui a effectuer l'action
|
||||||
"fk_user_action" integer, -- id de la personne qui doit effectuer l'action
|
"priority" smallint,
|
||||||
"fk_user_author" integer, -- id de la personne qui a effectuer l'action
|
"punctual" smallint NOT NULL default 1,
|
||||||
"priority" smallint,
|
"percent" smallint NOT NULL default 0,
|
||||||
"punctual" smallint NOT NULL default 1,
|
"durationp" real, -- duree planifiee
|
||||||
"percent" smallint NOT NULL default 0,
|
"durationa" real, -- duree reellement passee
|
||||||
"durationp" real, -- duree planifiee
|
"note" text,
|
||||||
"durationa" real, -- duree reellement passee
|
"propalrowid" integer,
|
||||||
"note" text,
|
"fk_commande" integer,
|
||||||
"propalrowid" integer,
|
"fk_facture" integer
|
||||||
"fk_commande" integer,
|
);
|
||||||
"fk_facture" integer
|
|
||||||
);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,67 +1,65 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ===================================================================
|
-- ===================================================================
|
||||||
-- Copyright (C) 2002-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
-- Copyright (C) 2002-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
-- Copyright (C) 2002-2003 Jean-Louis Bergamo <jlb@j1b.org>
|
-- Copyright (C) 2002-2003 Jean-Louis Bergamo <jlb@j1b.org>
|
||||||
-- Copyright (C) 2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
-- Copyright (C) 2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- Id: llx_adherent.sql,v 1.21 2007/12/02 21:51:12 eldy Exp
|
||||||
-- $Source$
|
-- ===================================================================
|
||||||
--
|
--
|
||||||
-- ===================================================================
|
-- statut
|
||||||
--
|
-- -1 : brouillon
|
||||||
-- statut
|
-- 0 : resilie
|
||||||
-- -1 : brouillon
|
-- 1 : valide
|
||||||
-- 0 : resilie
|
|
||||||
-- 1 : valide
|
create table llx_adherent
|
||||||
|
(
|
||||||
create table llx_adherent
|
rowid SERIAL PRIMARY KEY,
|
||||||
(
|
"nom" varchar(50),
|
||||||
rowid SERIAL PRIMARY KEY,
|
"prenom" varchar(50),
|
||||||
"nom" varchar(50),
|
"login" varchar(50) NOT NULL, -- login
|
||||||
"prenom" varchar(50),
|
"pass" varchar(50), -- password
|
||||||
"login" varchar(50) NOT NULL, -- login
|
"fk_adherent_type" smallint,
|
||||||
"pass" varchar(50), -- password
|
"morphy" varchar(3) CHECK (morphy IN ('mor','phy')) NOT NULL, -- personne morale / personne physique
|
||||||
"fk_adherent_type" smallint,
|
"societe" varchar(50),
|
||||||
"morphy" varchar(3) CHECK (morphy IN ('mor','phy')) NOT NULL, -- personne morale / personne physique
|
"adresse" text,
|
||||||
"societe" varchar(50),
|
"cp" varchar(30),
|
||||||
"adresse" text,
|
"ville" varchar(50),
|
||||||
"cp" varchar(30),
|
"pays" varchar(50),
|
||||||
"ville" varchar(50),
|
"email" varchar(255),
|
||||||
"pays" varchar(50),
|
"phone" varchar(30),
|
||||||
"email" varchar(255),
|
"phone_perso" varchar(30),
|
||||||
"phone" varchar(30),
|
"phone_mobile" varchar(30),
|
||||||
"phone_perso" varchar(30),
|
"naiss" date, -- date de naissance
|
||||||
"phone_mobile" varchar(30),
|
"photo" varchar(255), -- url vers photo
|
||||||
"naiss" date, -- date de naissance
|
"statut" smallint NOT NULL DEFAULT 0,
|
||||||
"photo" varchar(255), -- url vers photo
|
"public" smallint NOT NULL DEFAULT 0, -- certain champ de la fiche sont ils public ou pas ?
|
||||||
"statut" smallint NOT NULL DEFAULT 0,
|
"datefin" timestamp, -- date de fin de validit<69> de la cotisation
|
||||||
"public" smallint NOT NULL DEFAULT 0, -- certain champ de la fiche sont ils public ou pas ?
|
"note" text,
|
||||||
"datefin" timestamp, -- date de fin de validit<69> de la cotisation
|
"datevalid" timestamp, -- date de validation
|
||||||
"note" text,
|
"datec" timestamp, -- date de creation
|
||||||
"datevalid" timestamp, -- date de validation
|
"tms" timestamp, -- date de modification
|
||||||
"datec" timestamp, -- date de creation
|
"fk_user_author" integer NOT NULL,
|
||||||
"tms" timestamp, -- date de modification
|
"fk_user_mod" integer NOT NULL,
|
||||||
"fk_user_author" integer NOT NULL,
|
"fk_user_valid" integer NOT NULL,
|
||||||
"fk_user_mod" integer NOT NULL,
|
UNIQUE(login)
|
||||||
"fk_user_valid" integer NOT NULL,
|
);
|
||||||
UNIQUE(login)
|
|
||||||
);
|
CREATE INDEX idx_llx_adherent_login ON llx_adherent (login);
|
||||||
|
|
||||||
CREATE INDEX idx_llx_adherent_login ON llx_adherent (login);
|
|
||||||
|
|||||||
@@ -1,37 +1,35 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ===================================================================
|
-- ===================================================================
|
||||||
-- Copyright (C) 2002-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
-- Copyright (C) 2002-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
-- Copyright (C) 2002-2003 Jean-Louis Bergamo <jlb@j1b.org>
|
-- Copyright (C) 2002-2003 Jean-Louis Bergamo <jlb@j1b.org>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- Id: llx_adherent_options.sql,v 1.6 2007/12/02 21:51:12 eldy Exp
|
||||||
-- $Source$
|
-- ===================================================================
|
||||||
--
|
|
||||||
-- ===================================================================
|
|
||||||
|
create table llx_adherent_options
|
||||||
|
(
|
||||||
create table llx_adherent_options
|
optid SERIAL PRIMARY KEY,
|
||||||
(
|
"tms" timestamp,
|
||||||
optid SERIAL PRIMARY KEY,
|
"adhid" integer NOT NULL, -- id de l'adherent auquel correspond ces attributs optionnel
|
||||||
"tms" timestamp,
|
UNIQUE(adhid)
|
||||||
"adhid" integer NOT NULL, -- id de l'adherent auquel correspond ces attributs optionnel
|
);
|
||||||
UNIQUE(adhid)
|
|
||||||
);
|
CREATE INDEX idx_llx_adherent_options_adhid ON llx_adherent_options (adhid);
|
||||||
|
|
||||||
CREATE INDEX idx_llx_adherent_options_adhid ON llx_adherent_options (adhid);
|
|
||||||
|
|||||||
@@ -1,33 +1,31 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ===================================================================
|
-- ===================================================================
|
||||||
-- Copyright (C) 2002-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
-- Copyright (C) 2002-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
-- Copyright (C) 2002-2003 Jean-Louis Bergamo <jlb@j1b.org>
|
-- Copyright (C) 2002-2003 Jean-Louis Bergamo <jlb@j1b.org>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- Id: llx_adherent_options_label.sql,v 1.3 2007/12/02 21:51:12 eldy Exp
|
||||||
-- $Source$
|
-- ===================================================================
|
||||||
--
|
|
||||||
-- ===================================================================
|
create table llx_adherent_options_label
|
||||||
|
(
|
||||||
create table llx_adherent_options_label
|
name varchar(64) PRIMARY KEY, -- nom de l'attribut
|
||||||
(
|
"tms" timestamp,
|
||||||
name varchar(64) PRIMARY KEY, -- nom de l'attribut
|
"label" varchar(255) NOT NULL -- label correspondant a l'attribut
|
||||||
"tms" timestamp,
|
);
|
||||||
"label" varchar(255) NOT NULL -- label correspondant a l'attribut
|
|
||||||
);
|
|
||||||
|
|||||||
@@ -1,28 +1,26 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ============================================================================
|
-- ============================================================================
|
||||||
-- Copyright (C) 2007 Laurent Destailleur <eldy@users.sourceforge.net>
|
-- Copyright (C) 2007 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- $Id: llx_adherent_type.key.sql,v 1.3 2007/05/05 16:08:12 eldy Exp $
|
-- Id: llx_adherent_type.key.sql,v 1.4 2007/12/02 21:51:12 eldy Exp
|
||||||
-- $Source: /cvsroot/dolibarr/dolibarr/mysql/tables/llx_adherent_type.key.sql,v $
|
-- ============================================================================
|
||||||
--
|
|
||||||
-- ============================================================================
|
|
||||||
|
ALTER TABLE llx_adherent_type ADD UNIQUE uk_adherent_type_libelle (libelle);
|
||||||
|
|
||||||
ALTER TABLE llx_adherent_type ADD UNIQUE uk_adherent_type_libelle (libelle);
|
|
||||||
|
|||||||
@@ -1,42 +1,40 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ===================================================================
|
-- ===================================================================
|
||||||
-- Copyright (C) 2002-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
-- Copyright (C) 2002-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
-- Copyright (C) 2002-2003 Jean-Louis Bergamo <jlb@j1b.org>
|
-- Copyright (C) 2002-2003 Jean-Louis Bergamo <jlb@j1b.org>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- Id: llx_adherent_type.sql,v 1.10 2007/12/02 21:51:12 eldy Exp
|
||||||
-- $Source$
|
-- ===================================================================
|
||||||
--
|
--
|
||||||
-- ===================================================================
|
-- statut
|
||||||
--
|
-- 0 : actif
|
||||||
-- statut
|
-- 1 : inactif
|
||||||
-- 0 : actif
|
|
||||||
-- 1 : inactif
|
create table llx_adherent_type
|
||||||
|
(
|
||||||
create table llx_adherent_type
|
rowid SERIAL PRIMARY KEY,
|
||||||
(
|
"tms" timestamp,
|
||||||
rowid SERIAL PRIMARY KEY,
|
"statut" smallint NOT NULL DEFAULT 0,
|
||||||
"tms" timestamp,
|
"libelle" varchar(50) NOT NULL,
|
||||||
"statut" smallint NOT NULL DEFAULT 0,
|
"cotisation" varchar(3) CHECK (cotisation IN ('yes','no')) NOT NULL DEFAULT 'yes',
|
||||||
"libelle" varchar(50) NOT NULL,
|
"vote" varchar(3) CHECK (vote IN ('yes','no')) NOT NULL DEFAULT 'yes',
|
||||||
"cotisation" varchar(3) CHECK (cotisation IN ('yes','no')) NOT NULL DEFAULT 'yes',
|
"note" text,
|
||||||
"vote" varchar(3) CHECK (vote IN ('yes','no')) NOT NULL DEFAULT 'yes',
|
"mail_valid" text -- mail envoye a la validation
|
||||||
"note" text,
|
);
|
||||||
"mail_valid" text -- mail envoye a la validation
|
|
||||||
);
|
|
||||||
|
|||||||
@@ -1,37 +1,35 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ============================================================================
|
-- ============================================================================
|
||||||
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- Id: llx_appro.sql,v 1.3 2007/12/02 21:53:28 eldy Exp
|
||||||
-- $Source$
|
-- ============================================================================
|
||||||
--
|
|
||||||
-- ============================================================================
|
create table llx_appro
|
||||||
|
(
|
||||||
create table llx_appro
|
rowid SERIAL PRIMARY KEY,
|
||||||
(
|
"datec" timestamp,
|
||||||
rowid SERIAL PRIMARY KEY,
|
"tms" timestamp,
|
||||||
"datec" timestamp,
|
"fk_product" integer NOT NULL,
|
||||||
"tms" timestamp,
|
"quantity" smallint NOT NULL,
|
||||||
"fk_product" integer NOT NULL,
|
"price" real,
|
||||||
"quantity" smallint NOT NULL,
|
"fk_user_author" integer
|
||||||
"price" real,
|
);
|
||||||
"fk_user_author" integer
|
|
||||||
);
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,48 +1,46 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ===================================================================
|
-- ===================================================================
|
||||||
-- Copyright (C) 2000-2006 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
-- Copyright (C) 2000-2006 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
-- Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
-- Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- This program is free software; you can redistribute it and/or modify
|
||||||
-- $Source$
|
-- it under the terms of the GNU General Public License as published by
|
||||||
--
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- (at your option) any later version.
|
||||||
-- it under the terms of the GNU General Public License as published by
|
--
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- (at your option) any later version.
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
--
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- GNU General Public License for more details.
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
--
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- GNU General Public License for more details.
|
-- along with this program; if not, write to the Free Software
|
||||||
--
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
-- You should have received a copy of the GNU General Public License
|
--
|
||||||
-- along with this program; if not, write to the Free Software
|
-- Id: llx_bank.sql,v 1.11 2007/12/02 21:53:28 eldy Exp
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- ===================================================================
|
||||||
--
|
|
||||||
-- ===================================================================
|
create table llx_bank
|
||||||
|
(
|
||||||
create table llx_bank
|
rowid SERIAL PRIMARY KEY,
|
||||||
(
|
"datec" timestamp,
|
||||||
rowid SERIAL PRIMARY KEY,
|
"datev" date, -- date de valeur
|
||||||
"datec" timestamp,
|
"dateo" date, -- date operation
|
||||||
"datev" date, -- date de valeur
|
"amount" real(24,8) NOT NULL default 0,
|
||||||
"dateo" date, -- date operation
|
"label" varchar(255),
|
||||||
"amount" real NOT NULL default 0,
|
"fk_account" integer,
|
||||||
"label" varchar(255),
|
"fk_user_author" integer,
|
||||||
"fk_account" integer,
|
"fk_user_rappro" integer,
|
||||||
"fk_user_author" integer,
|
"fk_type" varchar(4), -- CB, Virement, cheque
|
||||||
"fk_user_rappro" integer,
|
"num_releve" varchar(50),
|
||||||
"fk_type" varchar(4), -- CB, Virement, cheque
|
"num_chq" int,
|
||||||
"num_releve" varchar(50),
|
"rappro" smallint default 0,
|
||||||
"num_chq" int,
|
"note" text,
|
||||||
"rappro" smallint default 0,
|
"fk_bordereau" integer DEFAULT 0,
|
||||||
"note" text,
|
"banque" varchar(255), -- banque pour les cheques
|
||||||
"fk_bordereau" integer DEFAULT 0,
|
"emetteur" varchar(255), -- emetteur du cheque
|
||||||
"banque" varchar(255), -- banque pour les cheques
|
"author" varchar(40) -- a supprimer apres migration
|
||||||
"emetteur" varchar(255), -- emetteur du cheque
|
);
|
||||||
"author" varchar(40) -- a supprimer apres migration
|
|
||||||
);
|
|
||||||
|
|||||||
@@ -1,28 +1,26 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ============================================================================
|
-- ============================================================================
|
||||||
-- Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
-- Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- Id: llx_bank_account.key.sql,v 1.2 2007/12/02 21:53:28 eldy Exp
|
||||||
-- $Source$
|
-- ============================================================================
|
||||||
--
|
|
||||||
-- ============================================================================
|
|
||||||
|
ALTER TABLE llx_bank_account ADD UNIQUE uk_bank_account_label (label);
|
||||||
|
|
||||||
ALTER TABLE llx_bank_account ADD UNIQUE uk_bank_account_label (label);
|
|
||||||
|
|||||||
@@ -1,58 +1,57 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- =============================================================================
|
-- =============================================================================
|
||||||
-- Copyright (C) 2000-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
-- Copyright (C) 2000-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
-- Copyright (C) 2004-2007 Laurent Destailleur <eldy@users.sourceforge.net>
|
-- Copyright (C) 2004-2007 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- Id: llx_bank_account.sql,v 1.28 2007/12/02 21:53:28 eldy Exp
|
||||||
-- $Source$
|
-- =============================================================================
|
||||||
--
|
|
||||||
--
|
-- courant : type de compte: 0 epargne, 1 courant, 2 caisse
|
||||||
-- courant : type de compte: 0 epargne, 1 courant, 2 caisse
|
-- clos : le compte est-il clos ou encore ouvert
|
||||||
-- clos : le compte est-il clos ou encore ouvert
|
|
||||||
--
|
create table llx_bank_account
|
||||||
-- =============================================================================
|
(
|
||||||
|
rowid SERIAL PRIMARY KEY,
|
||||||
create table llx_bank_account
|
"datec" timestamp,
|
||||||
(
|
"tms" timestamp,
|
||||||
rowid SERIAL PRIMARY KEY,
|
"ref" varchar(12) NOT NULL,
|
||||||
"datec" timestamp,
|
"label" varchar(30) NOT NULL,
|
||||||
"tms" timestamp,
|
"bank" varchar(60),
|
||||||
"ref" varchar(12) NOT NULL,
|
"code_banque" varchar(7),
|
||||||
"label" varchar(30) NOT NULL,
|
"code_guichet" varchar(6),
|
||||||
"bank" varchar(60),
|
"number" varchar(255),
|
||||||
"code_banque" varchar(7),
|
"cle_rib" varchar(5),
|
||||||
"code_guichet" varchar(6),
|
"bic" varchar(11),
|
||||||
"number" varchar(255),
|
"iban_prefix" varchar(50), -- Code IBAN
|
||||||
"cle_rib" varchar(5),
|
"country_iban" varchar(2),
|
||||||
"bic" varchar(11),
|
"cle_iban" varchar(2),
|
||||||
"iban_prefix" varchar(5),
|
"domiciliation" varchar(255),
|
||||||
"domiciliation" varchar(255),
|
"proprio" varchar(60),
|
||||||
"proprio" varchar(60),
|
"adresse_proprio" varchar(255),
|
||||||
"adresse_proprio" varchar(255),
|
"courant" smallint DEFAULT 0 NOT NULL,
|
||||||
"courant" smallint DEFAULT 0 NOT NULL,
|
"clos" smallint DEFAULT 0 NOT NULL,
|
||||||
"clos" smallint DEFAULT 0 NOT NULL,
|
"rappro" smallint DEFAULT 1,
|
||||||
"rappro" smallint DEFAULT 1,
|
"url" varchar(128),
|
||||||
"url" varchar(128),
|
"account_number" varchar(8),
|
||||||
"account_number" varchar(8),
|
"currency_code" varchar(3) NOT NULL,
|
||||||
"currency_code" varchar(3) NOT NULL,
|
"min_allowed" integer DEFAULT 0,
|
||||||
"min_allowed" integer DEFAULT 0,
|
"min_desired" integer DEFAULT 0,
|
||||||
"min_desired" integer DEFAULT 0,
|
"comment" varchar(254)
|
||||||
"comment" varchar(254)
|
);
|
||||||
);
|
|
||||||
|
|||||||
@@ -1,29 +1,29 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ===================================================================
|
-- ===================================================================
|
||||||
-- $Id$
|
-- Copyright (C) 2004-2007 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
-- $Source$
|
--
|
||||||
--
|
-- This program is free software; you can redistribute it and/or modify
|
||||||
-- 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
|
||||||
-- it under the terms of the GNU General Public License as published by
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- (at your option) any later version.
|
||||||
-- (at your option) any later version.
|
--
|
||||||
--
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- GNU General Public License for more details.
|
||||||
-- GNU General Public License for more details.
|
--
|
||||||
--
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- along with this program; if not, write to the Free Software
|
||||||
-- along with this program; if not, write to the Free Software
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
--
|
||||||
--
|
-- Id: llx_bank_categ.sql,v 1.4 2007/12/02 21:53:28 eldy Exp
|
||||||
-- ===================================================================
|
-- ===================================================================
|
||||||
|
|
||||||
create table llx_bank_categ
|
create table llx_bank_categ
|
||||||
(
|
(
|
||||||
rowid SERIAL PRIMARY KEY,
|
rowid SERIAL PRIMARY KEY,
|
||||||
"label" varchar(255)
|
"label" varchar(255)
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,32 +1,32 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ===================================================================
|
-- ===================================================================
|
||||||
-- $Id$
|
-- Copyright (C) 2004-2007 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
-- $Source$
|
--
|
||||||
--
|
-- This program is free software; you can redistribute it and/or modify
|
||||||
-- 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
|
||||||
-- it under the terms of the GNU General Public License as published by
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- (at your option) any later version.
|
||||||
-- (at your option) any later version.
|
--
|
||||||
--
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- GNU General Public License for more details.
|
||||||
-- GNU General Public License for more details.
|
--
|
||||||
--
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- along with this program; if not, write to the Free Software
|
||||||
-- along with this program; if not, write to the Free Software
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
--
|
||||||
--
|
-- Id: llx_bank_class.sql,v 1.5 2007/12/02 21:53:28 eldy Exp
|
||||||
-- ===================================================================
|
-- ===================================================================
|
||||||
|
|
||||||
|
|
||||||
create table llx_bank_class
|
create table llx_bank_class
|
||||||
(
|
(
|
||||||
"lineid" integer NOT NULL,
|
"lineid" integer NOT NULL,
|
||||||
"fk_categ" integer NOT NULL
|
"fk_categ" integer NOT NULL
|
||||||
);
|
);
|
||||||
|
|
||||||
CREATE INDEX idx_llx_bank_class_lineid ON llx_bank_class (lineid);
|
CREATE INDEX idx_llx_bank_class_lineid ON llx_bank_class (lineid);
|
||||||
|
|||||||
@@ -1,30 +1,28 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ===================================================================
|
-- ===================================================================
|
||||||
-- Copyright (C) 2005-2007 Laurent Destailleur <eldy@users.sourceforge.net>
|
-- Copyright (C) 2005-2007 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- Id: llx_bank_url.key.sql,v 1.4 2007/12/02 21:53:28 eldy Exp
|
||||||
-- $Source$
|
-- ===================================================================
|
||||||
--
|
|
||||||
-- ===================================================================
|
|
||||||
|
ALTER TABLE llx_bank_url ADD UNIQUE INDEX uk_bank_url (fk_bank,type);
|
||||||
|
|
||||||
ALTER TABLE llx_bank_url ADD UNIQUE INDEX uk_bank_url (fk_bank,type);
|
|
||||||
|
|
||||||
--ALTER TABLE llx_bank_url ADD INDEX idx_bank_url_fk_bank (fk_bank);
|
--ALTER TABLE llx_bank_url ADD INDEX idx_bank_url_fk_bank (fk_bank);
|
||||||
@@ -1,36 +1,34 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ===================================================================
|
-- ===================================================================
|
||||||
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
-- Copyright (C) 2007 Laurent Destailleur <eldy@users.sourceforge.net>
|
-- Copyright (C) 2007 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- Id: llx_bank_url.sql,v 1.9 2007/12/02 21:53:28 eldy Exp
|
||||||
-- $Source$
|
-- ===================================================================
|
||||||
--
|
|
||||||
-- ===================================================================
|
create table llx_bank_url
|
||||||
|
(
|
||||||
create table llx_bank_url
|
rowid SERIAL PRIMARY KEY,
|
||||||
(
|
"fk_bank" integer,
|
||||||
rowid SERIAL PRIMARY KEY,
|
"url_id" integer,
|
||||||
"fk_bank" integer,
|
"url" varchar(255),
|
||||||
"url_id" integer,
|
"label" varchar(255),
|
||||||
"url" varchar(255),
|
"type" varchar(20) NOT NULL
|
||||||
"label" varchar(255),
|
);
|
||||||
"type" varchar(16) CHECK (type IN ('?','company','payment','payment_supplier','member','subscription','donation','sc','payment_sc')) NOT NULL
|
|
||||||
);
|
|
||||||
|
|||||||
@@ -1,29 +1,27 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ===================================================================
|
-- ===================================================================
|
||||||
-- Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
-- Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- Id: llx_bookmark.key.sql,v 1.2 2007/12/02 21:53:28 eldy Exp
|
||||||
-- $Source$
|
-- ===================================================================
|
||||||
--
|
|
||||||
-- ===================================================================
|
|
||||||
|
ALTER TABLE llx_bookmark ADD UNIQUE uk_bookmark_url (fk_user, url);
|
||||||
|
|
||||||
ALTER TABLE llx_bookmark ADD UNIQUE uk_bookmark_url (fk_user, url);
|
|
||||||
ALTER TABLE llx_bookmark ADD UNIQUE uk_bookmark_title (fk_user, title);
|
ALTER TABLE llx_bookmark ADD UNIQUE uk_bookmark_title (fk_user, title);
|
||||||
@@ -1,35 +1,35 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ===================================================================
|
-- ===================================================================
|
||||||
-- $Id$
|
-- Copyright (C) 2007 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
-- $Source$
|
--
|
||||||
--
|
-- This program is free software; you can redistribute it and/or modify
|
||||||
-- 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
|
||||||
-- it under the terms of the GNU General Public License as published by
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- (at your option) any later version.
|
||||||
-- (at your option) any later version.
|
--
|
||||||
--
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- GNU General Public License for more details.
|
||||||
-- GNU General Public License for more details.
|
--
|
||||||
--
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- along with this program; if not, write to the Free Software
|
||||||
-- along with this program; if not, write to the Free Software
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
--
|
||||||
--
|
-- Id: llx_bookmark.sql,v 1.8 2007/12/02 21:53:28 eldy Exp
|
||||||
-- ===================================================================
|
-- ===================================================================
|
||||||
|
|
||||||
create table llx_bookmark
|
create table llx_bookmark
|
||||||
(
|
(
|
||||||
rowid SERIAL PRIMARY KEY,
|
rowid SERIAL PRIMARY KEY,
|
||||||
"fk_soc" integer,
|
"fk_soc" integer,
|
||||||
"fk_user" integer NOT NULL,
|
"fk_user" integer NOT NULL,
|
||||||
"dateb" timestamp,
|
"dateb" timestamp,
|
||||||
"url" varchar(128) NOT NULL,
|
"url" varchar(128) NOT NULL,
|
||||||
"target" varchar(16),
|
"target" varchar(16),
|
||||||
"title" varchar(64),
|
"title" varchar(64),
|
||||||
"favicon" varchar(24)
|
"favicon" varchar(24)
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,36 +1,34 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ============================================================================
|
-- ============================================================================
|
||||||
-- Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
-- Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- Id: llx_bookmark4u_login.sql,v 1.2 2007/12/02 21:53:28 eldy Exp
|
||||||
-- $Source$
|
-- ===========================================================================
|
||||||
--
|
|
||||||
-- ===========================================================================
|
|
||||||
|
create table llx_bookmark4u_login
|
||||||
|
(
|
||||||
create table llx_bookmark4u_login
|
rowid SERIAL PRIMARY KEY,
|
||||||
(
|
"fk_user" integer,
|
||||||
rowid SERIAL PRIMARY KEY,
|
"bk4u_uid" integer,
|
||||||
"fk_user" integer,
|
UNIQUE(fk_user)
|
||||||
"bk4u_uid" integer,
|
);
|
||||||
UNIQUE(fk_user)
|
|
||||||
);
|
CREATE INDEX idx_llx_bookmark4u_login_fk_user ON llx_bookmark4u_login (fk_user);
|
||||||
|
|
||||||
CREATE INDEX idx_llx_bookmark4u_login_fk_user ON llx_bookmark4u_login (fk_user);
|
|
||||||
|
|||||||
@@ -1,41 +1,41 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ===================================================================
|
-- ===================================================================
|
||||||
-- Copyright (C) 2006 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
-- Copyright (C) 2006 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
--
|
--
|
||||||
-- $Id: llx_bordereau_cheque.sql,v 1.4 2007/08/26 19:21:40 eldy Exp $
|
-- This program is free software; you can redistribute it and/or modify
|
||||||
-- $Source: /cvsroot/dolibarr/dolibarr/mysql/tables/llx_bordereau_cheque.sql,v $
|
-- it under the terms of the GNU General Public License as published by
|
||||||
--
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- (at your option) any later version.
|
||||||
-- it under the terms of the GNU General Public License as published by
|
--
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- (at your option) any later version.
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
--
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- GNU General Public License for more details.
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
--
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- GNU General Public License for more details.
|
-- along with this program; if not, write to the Free Software
|
||||||
--
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
-- 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: llx_bordereau_cheque.sql,v 1.6 2007/12/02 21:53:28 eldy Exp
|
||||||
--
|
-- ===================================================================
|
||||||
-- ===================================================================
|
|
||||||
--
|
--
|
||||||
-- Bordereaux de remise de cheque
|
-- Bordereaux de remise de cheque
|
||||||
--
|
--
|
||||||
create table llx_bordereau_cheque
|
create table llx_bordereau_cheque
|
||||||
(
|
(
|
||||||
rowid SERIAL PRIMARY KEY,
|
rowid SERIAL PRIMARY KEY,
|
||||||
"datec" timestamp,
|
"datec" timestamp,
|
||||||
"date_bordereau" date,
|
"date_bordereau" date, -- A quoi sert cette date ?
|
||||||
"number" integer,
|
"number" varchar(16) NOT NULL,
|
||||||
"amount" float(12,2),
|
"amount" real(24,8) NOT NULL,
|
||||||
"nbcheque" smallint DEFAULT 0,
|
"nbcheque" smallint NOT NULL,
|
||||||
"fk_bank_account" integer,
|
"fk_bank_account" integer,
|
||||||
"fk_user_author" integer,
|
"fk_user_author" integer,
|
||||||
"note" text,
|
"note" text,
|
||||||
"statut" int2 DEFAULT 0
|
"statut" int2 NOT NULL DEFAULT 0
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,33 +1,33 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ===================================================================
|
-- ===================================================================
|
||||||
-- Copyright (C) 2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
-- Copyright (C) 2006-2007 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- $Id: llx_boxes.key.sql,v 1.3 2006/11/01 15:15:15 eldy Exp $
|
-- Id: llx_boxes.key.sql,v 1.4 2007/12/02 14:46:08 eldy Exp
|
||||||
-- $Source: /cvsroot/dolibarr/dolibarr/mysql/tables/llx_boxes.key.sql,v $
|
-- ===================================================================
|
||||||
-- ===================================================================
|
|
||||||
|
|
||||||
|
ALTER TABLE llx_boxes ADD UNIQUE INDEX uk_boxes (box_id, position, fk_user);
|
||||||
-- Supprimme orphelins pour permettre mont<6E>e de la cl<63>
|
|
||||||
-- V4 DELETE llx_boxes FROM llx_boxes LEFT JOIN llx_boxes_def ON llx_boxes.box_id = llx_boxes_def.rowid WHERE llx_boxes_def.rowid IS NULL;
|
-- Supprime orphelins pour permettre mont<6E>e de la cl<63>
|
||||||
|
-- V4 DELETE llx_boxes FROM llx_boxes LEFT JOIN llx_boxes_def ON llx_boxes.box_id = llx_boxes_def.rowid WHERE llx_boxes_def.rowid IS NULL;
|
||||||
ALTER TABLE llx_boxes ADD INDEX idx_boxes_boxid (box_id);
|
ALTER TABLE llx_boxes ADD INDEX idx_boxes_boxid (box_id);
|
||||||
ALTER TABLE llx_boxes ADD CONSTRAINT fk_boxes_box_id FOREIGN KEY (box_id) REFERENCES llx_boxes_def (rowid);
|
ALTER TABLE llx_boxes ADD CONSTRAINT fk_boxes_box_id FOREIGN KEY (box_id) REFERENCES llx_boxes_def (rowid);
|
||||||
|
|
||||||
ALTER TABLE llx_boxes ADD INDEX idx_boxes_fk_user (fk_user);
|
ALTER TABLE llx_boxes ADD INDEX idx_boxes_fk_user (fk_user);
|
||||||
|
|||||||
@@ -1,39 +1,38 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ============================================================================
|
-- ============================================================================
|
||||||
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
-- Copyright (C) 2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
-- Copyright (C) 2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- Id: llx_boxes.sql,v 1.9 2007/12/02 21:53:29 eldy Exp
|
||||||
-- $Source$
|
-- ===========================================================================
|
||||||
--
|
|
||||||
-- ===========================================================================
|
--
|
||||||
--
|
-- position : 0=index.php
|
||||||
-- position : 0=index.php
|
-- box_order : Box sort order
|
||||||
-- box_order : Box sort order
|
--
|
||||||
--
|
|
||||||
|
create table llx_boxes
|
||||||
create table llx_boxes
|
(
|
||||||
(
|
rowid SERIAL PRIMARY KEY,
|
||||||
rowid SERIAL PRIMARY KEY,
|
"box_id" integer NOT NULL,
|
||||||
"box_id" integer NOT NULL,
|
"position" smallint NOT NULL,
|
||||||
"position" smallint NOT NULL,
|
"box_order" varchar(3) NOT NULL,
|
||||||
"box_order" varchar(3) NOT NULL,
|
"fk_user" integer default 0 NOT NULL
|
||||||
"fk_user" integer default 0 NOT NULL
|
);
|
||||||
);
|
|
||||||
|
|||||||
@@ -1,33 +1,31 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ============================================================================
|
-- ============================================================================
|
||||||
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- Id: llx_boxes_def.sql,v 1.5 2007/12/02 21:53:29 eldy Exp
|
||||||
-- $Source$
|
-- ===========================================================================
|
||||||
--
|
|
||||||
-- ===========================================================================
|
create table llx_boxes_def
|
||||||
|
(
|
||||||
create table llx_boxes_def
|
rowid SERIAL PRIMARY KEY,
|
||||||
(
|
"name" varchar(255) NOT NULL,
|
||||||
rowid SERIAL PRIMARY KEY,
|
"file" varchar(255) NOT NULL,
|
||||||
"name" varchar(255) NOT NULL,
|
"note" text
|
||||||
"file" varchar(255) NOT NULL,
|
);
|
||||||
"note" text
|
|
||||||
);
|
|
||||||
|
|||||||
@@ -1,37 +1,35 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ========================================================================
|
-- ========================================================================
|
||||||
-- Copyright (C) 2001-2002,2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
-- Copyright (C) 2001-2002,2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
-- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
-- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- This program is free software; you can redistribute it and/or modify
|
||||||
-- $Source$
|
-- it under the terms of the GNU General Public License as published by
|
||||||
--
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- (at your option) any later version.
|
||||||
-- it under the terms of the GNU General Public License as published by
|
--
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- (at your option) any later version.
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
--
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- GNU General Public License for more details.
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
--
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- GNU General Public License for more details.
|
-- along with this program; if not, write to the Free Software
|
||||||
--
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
-- You should have received a copy of the GNU General Public License
|
--
|
||||||
-- along with this program; if not, write to the Free Software
|
-- Id: llx_c_actioncomm.sql,v 1.8 2007/12/02 21:57:09 eldy Exp
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- ========================================================================
|
||||||
--
|
|
||||||
-- ========================================================================
|
create table llx_c_actioncomm
|
||||||
|
(
|
||||||
create table llx_c_actioncomm
|
id integer PRIMARY KEY,
|
||||||
(
|
"code" varchar(12) UNIQUE NOT NULL,
|
||||||
id integer PRIMARY KEY,
|
"type" varchar(10) DEFAULT 'system' NOT NULL,
|
||||||
"code" varchar(12) UNIQUE NOT NULL,
|
"libelle" varchar(30) NOT NULL,
|
||||||
"type" varchar(10) DEFAULT 'system' NOT NULL,
|
"module" varchar(16) DEFAULT NULL,
|
||||||
"libelle" varchar(30) NOT NULL,
|
"active" smallint DEFAULT 1 NOT NULL,
|
||||||
"module" varchar(16) DEFAULT NULL,
|
"todo" smallint
|
||||||
"active" smallint DEFAULT 1 NOT NULL,
|
);
|
||||||
"todo" smallint
|
|
||||||
);
|
|
||||||
|
|||||||
@@ -1,39 +1,37 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ========================================================================
|
-- ========================================================================
|
||||||
-- Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
-- Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
-- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
-- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- This program is free software; you can redistribute it and/or modify
|
||||||
-- $Source$
|
-- it under the terms of the GNU General Public License as published by
|
||||||
--
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- (at your option) any later version.
|
||||||
-- it under the terms of the GNU General Public License as published by
|
--
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- (at your option) any later version.
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
--
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- GNU General Public License for more details.
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
--
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- GNU General Public License for more details.
|
-- along with this program; if not, write to the Free Software
|
||||||
--
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
-- You should have received a copy of the GNU General Public License
|
--
|
||||||
-- along with this program; if not, write to the Free Software
|
-- Id: llx_c_ape.sql,v 1.7 2007/12/02 21:57:09 eldy Exp
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- ========================================================================
|
||||||
--
|
|
||||||
-- ========================================================================
|
|
||||||
|
create table llx_c_ape
|
||||||
|
(
|
||||||
create table llx_c_ape
|
rowid SERIAL PRIMARY KEY,
|
||||||
(
|
"code_ape" varchar(5) NOT NULL,
|
||||||
rowid SERIAL PRIMARY KEY,
|
"libelle" varchar(255),
|
||||||
"code_ape" varchar(5) NOT NULL,
|
"active" smallint DEFAULT 1 NOT NULL,
|
||||||
"libelle" varchar(255),
|
UNIQUE(code_ape)
|
||||||
"active" smallint DEFAULT 1 NOT NULL,
|
);
|
||||||
UNIQUE(code_ape)
|
|
||||||
);
|
CREATE INDEX idx_llx_c_ape_code_ape ON llx_c_ape (code_ape);
|
||||||
|
|
||||||
CREATE INDEX idx_llx_c_ape_code_ape ON llx_c_ape (code_ape);
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,37 +1,36 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ========================================================================
|
-- ========================================================================
|
||||||
-- Copyright (C) 2001-2002,2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
-- Copyright (C) 2001-2002,2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
-- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
-- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- Id: llx_c_chargesociales.sql,v 1.8 2007/12/02 21:57:09 eldy Exp
|
||||||
-- $Source$
|
-- ========================================================================
|
||||||
--
|
|
||||||
-- ========================================================================
|
create table llx_c_chargesociales
|
||||||
|
(
|
||||||
create table llx_c_chargesociales
|
id SERIAL PRIMARY KEY,
|
||||||
(
|
"libelle" varchar(80),
|
||||||
id SERIAL PRIMARY KEY,
|
"deductible" smallint DEFAULT 0 NOT NULL,
|
||||||
"libelle" varchar(80),
|
"active" smallint DEFAULT 1 NOT NULL,
|
||||||
"deductible" smallint DEFAULT 0 NOT NULL,
|
"actioncompta" varchar(12) NOT NULL
|
||||||
"active" smallint DEFAULT 1 NOT NULL
|
);
|
||||||
);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,34 +1,33 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ========================================================================
|
-- ========================================================================
|
||||||
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
|
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
|
||||||
-- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
-- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- Id: llx_c_civilite.sql,v 1.6 2007/12/02 21:57:09 eldy Exp
|
||||||
-- $Source$
|
-- ========================================================================
|
||||||
-- ========================================================================
|
|
||||||
|
create table llx_c_civilite
|
||||||
create table llx_c_civilite
|
(
|
||||||
(
|
rowid integer PRIMARY KEY,
|
||||||
rowid integer PRIMARY KEY,
|
"code" varchar(6) UNIQUE NOT NULL,
|
||||||
"code" varchar(6) UNIQUE NOT NULL,
|
"civilite" varchar(50),
|
||||||
"civilite" varchar(50),
|
"active" smallint DEFAULT 1 NOT NULL
|
||||||
"active" smallint DEFAULT 1 NOT NULL
|
);
|
||||||
);
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,28 +1,26 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ========================================================================
|
-- ========================================================================
|
||||||
-- Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
-- Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- This program is free software; you can redistribute it and/or modify
|
||||||
-- $Source$
|
-- it under the terms of the GNU General Public License as published by
|
||||||
--
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- (at your option) any later version.
|
||||||
-- it under the terms of the GNU General Public License as published by
|
--
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- (at your option) any later version.
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
--
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- GNU General Public License for more details.
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
--
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- GNU General Public License for more details.
|
-- along with this program; if not, write to the Free Software
|
||||||
--
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
-- You should have received a copy of the GNU General Public License
|
--
|
||||||
-- along with this program; if not, write to the Free Software
|
-- Id: llx_c_currencies.key.sql,v 1.2 2007/12/02 21:57:09 eldy Exp
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- ========================================================================
|
||||||
--
|
|
||||||
-- ========================================================================
|
|
||||||
|
ALTER TABLE llx_c_currencies ADD UNIQUE uk_c_currencies_code_iso(code_iso);
|
||||||
|
|
||||||
ALTER TABLE llx_c_currencies ADD UNIQUE uk_c_currencies_code_iso(code_iso);
|
|
||||||
|
|||||||
@@ -1,34 +1,32 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ========================================================================
|
-- ========================================================================
|
||||||
-- Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
-- Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- This program is free software; you can redistribute it and/or modify
|
||||||
-- $Source$
|
-- it under the terms of the GNU General Public License as published by
|
||||||
--
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- (at your option) any later version.
|
||||||
-- it under the terms of the GNU General Public License as published by
|
--
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- (at your option) any later version.
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
--
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- GNU General Public License for more details.
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
--
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- GNU General Public License for more details.
|
-- along with this program; if not, write to the Free Software
|
||||||
--
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
-- You should have received a copy of the GNU General Public License
|
--
|
||||||
-- along with this program; if not, write to the Free Software
|
-- Id: llx_c_currencies.sql,v 1.3 2007/12/02 21:57:09 eldy Exp
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- ========================================================================
|
||||||
--
|
|
||||||
-- ========================================================================
|
create table llx_c_currencies
|
||||||
|
(
|
||||||
create table llx_c_currencies
|
code varchar(2) PRIMARY KEY,
|
||||||
(
|
"code_iso" varchar(3) NOT NULL,
|
||||||
code varchar(2) PRIMARY KEY,
|
"label" varchar(64),
|
||||||
"code_iso" varchar(3) NOT NULL,
|
"active" smallint DEFAULT 1 NOT NULL
|
||||||
"label" varchar(64),
|
);
|
||||||
"active" smallint DEFAULT 1 NOT NULL
|
|
||||||
);
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,31 +1,29 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ============================================================================
|
-- ============================================================================
|
||||||
-- Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
-- Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- Id: llx_c_departements.key.sql,v 1.3 2007/12/02 21:57:09 eldy Exp
|
||||||
-- $Source$
|
-- ============================================================================
|
||||||
--
|
|
||||||
-- ============================================================================
|
|
||||||
|
ALTER TABLE llx_c_departements ADD UNIQUE uk_departements (code_departement,fk_region);
|
||||||
|
|
||||||
ALTER TABLE llx_c_departements ADD UNIQUE uk_departements (code_departement,fk_region);
|
|
||||||
|
ALTER TABLE llx_c_departements ADD INDEX idx_departements_fk_region (fk_region);
|
||||||
|
|
||||||
ALTER TABLE llx_c_departements ADD INDEX idx_departements_fk_region (fk_region);
|
|
||||||
|
|||||||
@@ -1,41 +1,39 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ========================================================================
|
-- ========================================================================
|
||||||
-- Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
-- Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
-- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
-- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- This program is free software; you can redistribute it and/or modify
|
||||||
-- $Source$
|
-- it under the terms of the GNU General Public License as published by
|
||||||
--
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- (at your option) any later version.
|
||||||
-- it under the terms of the GNU General Public License as published by
|
--
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- (at your option) any later version.
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
--
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- GNU General Public License for more details.
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
--
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- GNU General Public License for more details.
|
-- along with this program; if not, write to the Free Software
|
||||||
--
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
-- You should have received a copy of the GNU General Public License
|
--
|
||||||
-- along with this program; if not, write to the Free Software
|
-- Id: llx_c_departements.sql,v 1.9 2007/12/02 21:57:09 eldy Exp
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- ========================================================================
|
||||||
--
|
|
||||||
-- ========================================================================
|
create table llx_c_departements
|
||||||
|
(
|
||||||
create table llx_c_departements
|
rowid SERIAL PRIMARY KEY,
|
||||||
(
|
"code_departement" varchar(6) NOT NULL,
|
||||||
rowid SERIAL PRIMARY KEY,
|
"fk_region" integer,
|
||||||
"code_departement" varchar(6) NOT NULL,
|
"cheflieu" varchar(7),
|
||||||
"fk_region" integer,
|
"tncc" integer,
|
||||||
"cheflieu" varchar(7),
|
"ncc" varchar(50),
|
||||||
"tncc" integer,
|
"nom" varchar(50),
|
||||||
"ncc" varchar(50),
|
"active" smallint DEFAULT 1 NOT NULL
|
||||||
"nom" varchar(50),
|
);
|
||||||
"active" smallint DEFAULT 1 NOT NULL
|
|
||||||
);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,36 +1,34 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ========================================================================
|
-- ========================================================================
|
||||||
-- Copyright (C) 2007 R<>gis Houssin <regis@dolibarr.fr>
|
-- Copyright (C) 2007 R<>gis Houssin <regis@dolibarr.fr>
|
||||||
--
|
--
|
||||||
-- $Id: llx_c_ecotaxe.sql,v 1.2 2007/09/01 15:03:40 hregis Exp $
|
-- This program is free software; you can redistribute it and/or modify
|
||||||
-- $Source: /cvsroot/dolibarr/dolibarr/pgsql/tables/llx_c_ecotaxe.sql,v $
|
-- it under the terms of the GNU General Public License as published by
|
||||||
--
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- (at your option) any later version.
|
||||||
-- it under the terms of the GNU General Public License as published by
|
--
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- (at your option) any later version.
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
--
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- GNU General Public License for more details.
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
--
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- GNU General Public License for more details.
|
-- along with this program; if not, write to the Free Software
|
||||||
--
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
-- You should have received a copy of the GNU General Public License
|
--
|
||||||
-- along with this program; if not, write to the Free Software
|
-- Id: llx_c_ecotaxe.sql,v 1.7 2007/12/02 21:57:09 eldy Exp
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- ========================================================================
|
||||||
--
|
|
||||||
-- ========================================================================
|
create table llx_c_ecotaxe
|
||||||
|
(
|
||||||
create table llx_c_ecotaxe
|
rowid SERIAL PRIMARY KEY,
|
||||||
(
|
"code" varchar(64) UNIQUE NOT NULL, -- Code servant <20> la traduction et <20> la r<>f<EFBFBD>rence interne
|
||||||
rowid SERIAL PRIMARY KEY,
|
"libelle" varchar(255), -- Description
|
||||||
"code" varchar(64) UNIQUE NOT NULL, -- Code servant <20> la traduction et <20> la r<>f<EFBFBD>rence interne
|
"price" real(24,8), -- Montant HT
|
||||||
"libelle" varchar(255), -- Description
|
"organization" varchar(255), -- Organisme g<>rant le bar<61>me tarifaire
|
||||||
"price" real(16,8), -- Montant HT
|
"fk_pays" integer NOT NULL, -- Pays correspondant
|
||||||
"organization" varchar(255), -- Organisme g<>rant le bar<61>me tarifaire
|
"active" smallint DEFAULT 1 NOT NULL
|
||||||
"fk_pays" integer NOT NULL, -- Pays correspondant
|
|
||||||
"active" smallint DEFAULT 1 NOT NULL
|
|
||||||
);
|
);
|
||||||
@@ -1,35 +1,33 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ========================================================================
|
-- ========================================================================
|
||||||
-- Copyright (C) 2001-2002,2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
-- Copyright (C) 2001-2002,2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
-- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
-- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- This program is free software; you can redistribute it and/or modify
|
||||||
-- $Source$
|
-- it under the terms of the GNU General Public License as published by
|
||||||
--
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- (at your option) any later version.
|
||||||
-- it under the terms of the GNU General Public License as published by
|
--
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- (at your option) any later version.
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
--
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- GNU General Public License for more details.
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
--
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- GNU General Public License for more details.
|
-- along with this program; if not, write to the Free Software
|
||||||
--
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
-- You should have received a copy of the GNU General Public License
|
--
|
||||||
-- along with this program; if not, write to the Free Software
|
-- Id: llx_c_effectif.sql,v 1.6 2007/12/02 21:57:09 eldy Exp
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- ========================================================================
|
||||||
--
|
|
||||||
-- ========================================================================
|
create table llx_c_effectif
|
||||||
|
(
|
||||||
create table llx_c_effectif
|
id integer PRIMARY KEY,
|
||||||
(
|
"code" varchar(12) UNIQUE NOT NULL,
|
||||||
id integer PRIMARY KEY,
|
"libelle" varchar(30),
|
||||||
"code" varchar(12) UNIQUE NOT NULL,
|
"active" smallint DEFAULT 1 NOT NULL
|
||||||
"libelle" varchar(30),
|
);
|
||||||
"active" smallint DEFAULT 1 NOT NULL
|
|
||||||
);
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,37 +1,35 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ========================================================================
|
-- ========================================================================
|
||||||
-- Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
-- Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
-- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
-- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- Id: llx_c_forme_juridique.sql,v 1.8 2007/12/02 21:57:09 eldy Exp
|
||||||
-- $Source$
|
-- ========================================================================
|
||||||
--
|
|
||||||
-- ========================================================================
|
|
||||||
|
create table llx_c_forme_juridique
|
||||||
|
(
|
||||||
create table llx_c_forme_juridique
|
rowid SERIAL PRIMARY KEY,
|
||||||
(
|
"code" varchar(12) UNIQUE NOT NULL,
|
||||||
rowid SERIAL PRIMARY KEY,
|
"fk_pays" integer NOT NULL,
|
||||||
"code" varchar(12) UNIQUE NOT NULL,
|
"libelle" varchar(255),
|
||||||
"fk_pays" integer NOT NULL,
|
"active" smallint DEFAULT 1 NOT NULL
|
||||||
"libelle" varchar(255),
|
);
|
||||||
"active" smallint DEFAULT 1 NOT NULL
|
|
||||||
);
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,39 +1,37 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ========================================================================
|
-- ========================================================================
|
||||||
-- Copyright (C) 2004-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
-- Copyright (C) 2004-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
-- Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
-- Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- This program is free software; you can redistribute it and/or modify
|
||||||
-- $Source$
|
-- it under the terms of the GNU General Public License as published by
|
||||||
--
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- (at your option) any later version.
|
||||||
-- it under the terms of the GNU General Public License as published by
|
--
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- (at your option) any later version.
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
--
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- GNU General Public License for more details.
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
--
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- GNU General Public License for more details.
|
-- along with this program; if not, write to the Free Software
|
||||||
--
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
-- You should have received a copy of the GNU General Public License
|
--
|
||||||
-- along with this program; if not, write to the Free Software
|
-- Id: llx_c_methode_commande_fournisseur.sql,v 1.5 2007/12/02 21:57:09 eldy Exp
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- ========================================================================
|
||||||
--
|
|
||||||
-- ========================================================================
|
|
||||||
|
create table llx_c_methode_commande_fournisseur
|
||||||
|
(
|
||||||
create table llx_c_methode_commande_fournisseur
|
rowid SERIAL PRIMARY KEY,
|
||||||
(
|
"code" varchar(30),
|
||||||
rowid SERIAL PRIMARY KEY,
|
"libelle" varchar(60),
|
||||||
"code" varchar(30),
|
"active" smallint default 1 NOT NULL,
|
||||||
"libelle" varchar(60),
|
UNIQUE(code)
|
||||||
"active" smallint default 1 NOT NULL,
|
);
|
||||||
UNIQUE(code)
|
|
||||||
);
|
CREATE INDEX idx_llx_c_methode_commande_fournisseur_code ON llx_c_methode_commande_fournisseur (code);
|
||||||
|
|
||||||
CREATE INDEX idx_llx_c_methode_commande_fournisseur_code ON llx_c_methode_commande_fournisseur (code);
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,44 +1,43 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ========================================================================
|
-- ========================================================================
|
||||||
-- Copyright (C) 2001-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
-- Copyright (C) 2001-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
-- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
-- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- Id: llx_c_paiement.sql,v 1.8 2007/12/02 21:57:09 eldy Exp
|
||||||
-- $Source$
|
-- ========================================================================
|
||||||
--
|
|
||||||
-- ========================================================================
|
|
||||||
--
|
-- Type :
|
||||||
-- Type :
|
--
|
||||||
--
|
-- 0 : entr<74>e d'argent
|
||||||
-- 0 : entr<EFBFBD>e d'argent
|
-- 1 : sortie d'argent
|
||||||
-- 1 : sortie d'argent
|
-- 2 : entr<74>e ou sortie d'argent
|
||||||
-- 2 : entr<74>e ou sortie d'argent
|
|
||||||
|
create table llx_c_paiement
|
||||||
create table llx_c_paiement
|
(
|
||||||
(
|
id integer PRIMARY KEY,
|
||||||
id integer PRIMARY KEY,
|
"code" varchar(6) UNIQUE NOT NULL,
|
||||||
"code" varchar(6) UNIQUE NOT NULL,
|
"libelle" varchar(30),
|
||||||
"libelle" varchar(30),
|
"type" smallint,
|
||||||
"type" smallint,
|
"active" smallint DEFAULT 1 NOT NULL
|
||||||
"active" smallint DEFAULT 1 NOT NULL
|
);
|
||||||
);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,30 +1,28 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ========================================================================
|
-- ========================================================================
|
||||||
-- Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
-- Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- This program is free software; you can redistribute it and/or modify
|
||||||
-- $Source$
|
-- it under the terms of the GNU General Public License as published by
|
||||||
--
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- (at your option) any later version.
|
||||||
-- it under the terms of the GNU General Public License as published by
|
--
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- (at your option) any later version.
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
--
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- GNU General Public License for more details.
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
--
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- GNU General Public License for more details.
|
-- along with this program; if not, write to the Free Software
|
||||||
--
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
-- You should have received a copy of the GNU General Public License
|
--
|
||||||
-- along with this program; if not, write to the Free Software
|
-- Id: llx_c_pays.key.sql,v 1.2 2007/12/02 21:57:09 eldy Exp
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- ========================================================================
|
||||||
--
|
|
||||||
-- ========================================================================
|
|
||||||
|
ALTER TABLE llx_c_pays ADD UNIQUE INDEX idx_c_pays_code (code);
|
||||||
|
ALTER TABLE llx_c_pays ADD UNIQUE INDEX idx_c_pays_code_iso (code_iso);
|
||||||
ALTER TABLE llx_c_pays ADD UNIQUE INDEX idx_c_pays_code (code);
|
ALTER TABLE llx_c_pays ADD UNIQUE INDEX idx_c_pays_libelle (libelle);
|
||||||
ALTER TABLE llx_c_pays ADD UNIQUE INDEX idx_c_pays_code_iso (code_iso);
|
|
||||||
ALTER TABLE llx_c_pays ADD UNIQUE INDEX idx_c_pays_libelle (libelle);
|
|
||||||
|
|||||||
@@ -1,35 +1,33 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ========================================================================
|
-- ========================================================================
|
||||||
-- Copyright (C) 2001-2002,2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
-- Copyright (C) 2001-2002,2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
-- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
-- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- This program is free software; you can redistribute it and/or modify
|
||||||
-- $Source$
|
-- it under the terms of the GNU General Public License as published by
|
||||||
--
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- (at your option) any later version.
|
||||||
-- it under the terms of the GNU General Public License as published by
|
--
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- (at your option) any later version.
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
--
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- GNU General Public License for more details.
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
--
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- GNU General Public License for more details.
|
-- along with this program; if not, write to the Free Software
|
||||||
--
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
-- You should have received a copy of the GNU General Public License
|
--
|
||||||
-- along with this program; if not, write to the Free Software
|
-- Id: llx_c_pays.sql,v 1.12 2007/12/02 21:57:09 eldy Exp
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- ========================================================================
|
||||||
--
|
|
||||||
-- ========================================================================
|
create table llx_c_pays
|
||||||
|
(
|
||||||
create table llx_c_pays
|
rowid integer PRIMARY KEY,
|
||||||
(
|
"code" varchar(2) NOT NULL,
|
||||||
rowid integer PRIMARY KEY,
|
"code_iso" varchar(3) ,
|
||||||
"code" varchar(2) NOT NULL,
|
"libelle" varchar(50) NOT NULL,
|
||||||
"code_iso" varchar(3) ,
|
"active" smallint DEFAULT 1 NOT NULL
|
||||||
"libelle" varchar(50) NOT NULL,
|
);
|
||||||
"active" smallint DEFAULT 1 NOT NULL
|
|
||||||
);
|
|
||||||
|
|||||||
@@ -1,35 +1,33 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ===================================================================
|
-- ===================================================================
|
||||||
-- Copyright (C) 2001-2002,2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
-- Copyright (C) 2001-2002,2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
-- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
-- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- This program is free software; you can redistribute it and/or modify
|
||||||
-- $Source$
|
-- it under the terms of the GNU General Public License as published by
|
||||||
--
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- (at your option) any later version.
|
||||||
-- it under the terms of the GNU General Public License as published by
|
--
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- (at your option) any later version.
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
--
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- GNU General Public License for more details.
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
--
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- GNU General Public License for more details.
|
-- along with this program; if not, write to the Free Software
|
||||||
--
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
-- You should have received a copy of the GNU General Public License
|
--
|
||||||
-- along with this program; if not, write to the Free Software
|
-- Id: llx_c_propalst.sql,v 1.6 2007/12/02 21:57:09 eldy Exp
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- ===================================================================
|
||||||
--
|
|
||||||
-- ===================================================================
|
create table llx_c_propalst
|
||||||
|
(
|
||||||
create table llx_c_propalst
|
id smallint PRIMARY KEY,
|
||||||
(
|
"code" varchar(12) UNIQUE NOT NULL,
|
||||||
id smallint PRIMARY KEY,
|
"label" varchar(30),
|
||||||
"code" varchar(12) UNIQUE NOT NULL,
|
"active" smallint DEFAULT 1 NOT NULL
|
||||||
"label" varchar(30),
|
);
|
||||||
"active" smallint DEFAULT 1 NOT NULL
|
|
||||||
);
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,29 +1,27 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ========================================================================
|
-- ========================================================================
|
||||||
-- Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
-- Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- This program is free software; you can redistribute it and/or modify
|
||||||
-- $Source$
|
-- it under the terms of the GNU General Public License as published by
|
||||||
--
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- (at your option) any later version.
|
||||||
-- it under the terms of the GNU General Public License as published by
|
--
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- (at your option) any later version.
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
--
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- GNU General Public License for more details.
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
--
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- GNU General Public License for more details.
|
-- along with this program; if not, write to the Free Software
|
||||||
--
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
-- You should have received a copy of the GNU General Public License
|
--
|
||||||
-- along with this program; if not, write to the Free Software
|
-- Id: llx_c_regions.key.sql,v 1.4 2007/12/02 21:57:09 eldy Exp
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- ========================================================================
|
||||||
--
|
|
||||||
-- ========================================================================
|
|
||||||
|
ALTER TABLE llx_c_regions ADD INDEX idx_c_regions_fk_pays (fk_pays);
|
||||||
|
ALTER TABLE llx_c_regions ADD CONSTRAINT fk_c_regions_fk_pays FOREIGN KEY (fk_pays) REFERENCES llx_c_pays (rowid);
|
||||||
ALTER TABLE llx_c_regions ADD INDEX idx_c_regions_fk_pays (fk_pays);
|
|
||||||
ALTER TABLE llx_c_regions ADD CONSTRAINT fk_c_regions_fk_pays FOREIGN KEY (fk_pays) REFERENCES llx_c_pays (rowid);
|
|
||||||
|
|||||||
@@ -1,38 +1,36 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ========================================================================
|
-- ========================================================================
|
||||||
-- Copyright (C) 2001-2002,2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
-- Copyright (C) 2001-2002,2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
-- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
-- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- This program is free software; you can redistribute it and/or modify
|
||||||
-- $Source$
|
-- it under the terms of the GNU General Public License as published by
|
||||||
--
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- (at your option) any later version.
|
||||||
-- it under the terms of the GNU General Public License as published by
|
--
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- (at your option) any later version.
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
--
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- GNU General Public License for more details.
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
--
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- GNU General Public License for more details.
|
-- along with this program; if not, write to the Free Software
|
||||||
--
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
-- You should have received a copy of the GNU General Public License
|
--
|
||||||
-- along with this program; if not, write to the Free Software
|
-- Id: llx_c_regions.sql,v 1.11 2007/12/02 21:57:10 eldy Exp
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- ========================================================================
|
||||||
--
|
|
||||||
-- ========================================================================
|
create table llx_c_regions
|
||||||
|
(
|
||||||
create table llx_c_regions
|
rowid SERIAL PRIMARY KEY,
|
||||||
(
|
"code_region" integer UNIQUE NOT NULL,
|
||||||
rowid SERIAL PRIMARY KEY,
|
"fk_pays" integer NOT NULL,
|
||||||
"code_region" integer UNIQUE NOT NULL,
|
"cheflieu" varchar(7),
|
||||||
"fk_pays" integer NOT NULL,
|
"tncc" integer,
|
||||||
"cheflieu" varchar(7),
|
"nom" varchar(50),
|
||||||
"tncc" integer,
|
"active" smallint DEFAULT 1 NOT NULL
|
||||||
"nom" varchar(50),
|
);
|
||||||
"active" smallint DEFAULT 1 NOT NULL
|
|
||||||
);
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,35 +1,33 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ========================================================================
|
-- ========================================================================
|
||||||
-- Copyright (C) 2001-2002,2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
-- Copyright (C) 2001-2002,2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
-- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
-- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- This program is free software; you can redistribute it and/or modify
|
||||||
-- $Source$
|
-- it under the terms of the GNU General Public License as published by
|
||||||
--
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- (at your option) any later version.
|
||||||
-- it under the terms of the GNU General Public License as published by
|
--
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- (at your option) any later version.
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
--
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- GNU General Public License for more details.
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
--
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- GNU General Public License for more details.
|
-- along with this program; if not, write to the Free Software
|
||||||
--
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
-- You should have received a copy of the GNU General Public License
|
--
|
||||||
-- along with this program; if not, write to the Free Software
|
-- Id: llx_c_stcomm.sql,v 1.6 2007/12/02 21:57:10 eldy Exp
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- ========================================================================
|
||||||
--
|
|
||||||
-- ========================================================================
|
create table llx_c_stcomm
|
||||||
|
(
|
||||||
create table llx_c_stcomm
|
id integer PRIMARY KEY,
|
||||||
(
|
"code" varchar(12) UNIQUE NOT NULL,
|
||||||
id integer PRIMARY KEY,
|
"libelle" varchar(30),
|
||||||
"code" varchar(12) UNIQUE NOT NULL,
|
"active" smallint default 1 NOT NULL
|
||||||
"libelle" varchar(30),
|
);
|
||||||
"active" smallint default 1 NOT NULL
|
|
||||||
);
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,37 +1,35 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ========================================================================
|
-- ========================================================================
|
||||||
-- Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
-- Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- This program is free software; you can redistribute it and/or modify
|
||||||
-- $Source$
|
-- it under the terms of the GNU General Public License as published by
|
||||||
--
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- (at your option) any later version.
|
||||||
-- it under the terms of the GNU General Public License as published by
|
--
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- (at your option) any later version.
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
--
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- GNU General Public License for more details.
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
--
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- GNU General Public License for more details.
|
-- along with this program; if not, write to the Free Software
|
||||||
--
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
-- You should have received a copy of the GNU General Public License
|
--
|
||||||
-- along with this program; if not, write to the Free Software
|
-- Id: llx_c_tva.sql,v 1.3 2007/12/02 21:57:10 eldy Exp
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- ========================================================================
|
||||||
--
|
|
||||||
-- ========================================================================
|
|
||||||
|
create table llx_c_tva
|
||||||
|
(
|
||||||
create table llx_c_tva
|
rowid SERIAL PRIMARY KEY,
|
||||||
(
|
"fk_pays" integer NOT NULL,
|
||||||
rowid SERIAL PRIMARY KEY,
|
"taux" real NOT NULL,
|
||||||
"fk_pays" integer NOT NULL,
|
"recuperableonly" integer NOT NULL DEFAULT 0,
|
||||||
"taux" real NOT NULL,
|
"note" varchar(128),
|
||||||
"recuperableonly" integer NOT NULL DEFAULT 0,
|
"active" smallint DEFAULT 1 NOT NULL
|
||||||
"note" varchar(128),
|
);
|
||||||
"active" smallint DEFAULT 1 NOT NULL
|
|
||||||
);
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,39 +1,37 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ========================================================================
|
-- ========================================================================
|
||||||
-- Copyright (C) 2005 Patrick Rouillon <patrick.rouillon.net>
|
-- Copyright (C) 2005 Patrick Rouillon <patrick.rouillon.net>
|
||||||
-- Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
-- Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- This program is free software; you can redistribute it and/or modify
|
||||||
-- $Source$
|
-- it under the terms of the GNU General Public License as published by
|
||||||
--
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- (at your option) any later version.
|
||||||
-- it under the terms of the GNU General Public License as published by
|
--
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- (at your option) any later version.
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
--
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- GNU General Public License for more details.
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
--
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- GNU General Public License for more details.
|
-- along with this program; if not, write to the Free Software
|
||||||
--
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
-- You should have received a copy of the GNU General Public License
|
--
|
||||||
-- along with this program; if not, write to the Free Software
|
-- Id: llx_c_type_contact.key.sql,v 1.3 2007/12/02 21:57:10 eldy Exp
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- ========================================================================
|
||||||
--
|
-- Defini les types de contact d'un element sert de reference pour
|
||||||
-- Defini les types de contact d'un element sert de reference pour
|
-- la table llx_element_contact
|
||||||
-- la table llx_element_contact
|
--
|
||||||
--
|
-- element est le nom de la table utilisant le type de contact.
|
||||||
-- element est le nom de la table utilisant le type de contact.
|
-- i.e. contact, facture, projet, societe (sans le llx_ devant).
|
||||||
-- i.e. contact, facture, projet, societe (sans le llx_ devant).
|
-- Libelle est un texte d<>crivant le type de contact.
|
||||||
-- Libelle est un texte d<>crivant le type de contact.
|
-- active pr<70>cide si cette valeur est active ou 'archiv<69>'.
|
||||||
-- active pr<70>cide si cette valeur est active ou 'archiv<69>'.
|
|
||||||
--
|
|
||||||
-- ========================================================================
|
|
||||||
|
ALTER TABLE llx_c_type_contact
|
||||||
|
ADD UNIQUE INDEX idx_c_type_contact_uk (element, source, code);
|
||||||
ALTER TABLE llx_c_type_contact
|
|
||||||
ADD UNIQUE INDEX idx_c_type_contact_uk (element, source, code);
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,45 +1,43 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ========================================================================
|
-- ========================================================================
|
||||||
-- Copyright (C) 2005 Patrick Rouillon <patrick.rouillon.net>
|
-- Copyright (C) 2005 Patrick Rouillon <patrick.rouillon.net>
|
||||||
-- Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
-- Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- This program is free software; you can redistribute it and/or modify
|
||||||
-- $Source$
|
-- it under the terms of the GNU General Public License as published by
|
||||||
--
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- (at your option) any later version.
|
||||||
-- it under the terms of the GNU General Public License as published by
|
--
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- (at your option) any later version.
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
--
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- GNU General Public License for more details.
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
--
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- GNU General Public License for more details.
|
-- along with this program; if not, write to the Free Software
|
||||||
--
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
-- You should have received a copy of the GNU General Public License
|
--
|
||||||
-- along with this program; if not, write to the Free Software
|
-- Defini les types de contact d'un element sert de reference pour
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- la table llx_element_contact
|
||||||
--
|
--
|
||||||
-- Defini les types de contact d'un element sert de reference pour
|
-- element est le nom de la table utilisant le type de contact.
|
||||||
-- la table llx_element_contact
|
-- i.e. contact, facture, projet, societe (sans le llx_ devant).
|
||||||
--
|
-- Libelle est un texte d<>crivant le type de contact.
|
||||||
-- element est le nom de la table utilisant le type de contact.
|
-- active pr<70>cide si cette valeur est active ou 'archiv<69>'.
|
||||||
-- i.e. contact, facture, projet, societe (sans le llx_ devant).
|
--
|
||||||
-- Libelle est un texte d<>crivant le type de contact.
|
-- Id: llx_c_type_contact.sql,v 1.5 2007/12/02 21:57:10 eldy Exp
|
||||||
-- active pr<70>cide si cette valeur est active ou 'archiv<69>'.
|
-- ========================================================================
|
||||||
--
|
|
||||||
-- ========================================================================
|
|
||||||
|
create table llx_c_type_contact
|
||||||
|
(
|
||||||
create table llx_c_type_contact
|
rowid integer PRIMARY KEY,
|
||||||
(
|
"element" varchar(30) NOT NULL,
|
||||||
rowid integer PRIMARY KEY,
|
"source" varchar(8) DEFAULT 'external' NOT NULL,
|
||||||
"element" varchar(30) NOT NULL,
|
"code" varchar(16) NOT NULL,
|
||||||
"source" varchar(8) DEFAULT 'external' NOT NULL,
|
"libelle" varchar(64) NOT NULL,
|
||||||
"code" varchar(16) NOT NULL,
|
"active" smallint DEFAULT 1 NOT NULL
|
||||||
"libelle" varchar(64) NOT NULL,
|
);
|
||||||
"active" smallint DEFAULT 1 NOT NULL
|
|
||||||
);
|
|
||||||
|
|||||||
@@ -1,34 +1,42 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ========================================================================
|
-- ========================================================================
|
||||||
-- Copyright (C) 2001-2002,2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
-- Copyright (C) 2001-2002,2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
-- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
-- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- Id: llx_c_typent.sql,v 1.6 2007/12/02 21:57:10 eldy Exp
|
||||||
-- $Source$
|
-- ========================================================================
|
||||||
--
|
|
||||||
-- ========================================================================
|
CREATE TABLE llx_surveys_answers_summary (
|
||||||
|
fk_question integer PRIMARY KEY,
|
||||||
create table llx_c_typent
|
"nb_rep1" decimal(10,0) NOT NULL default '0',
|
||||||
(
|
"nb_rep2" decimal(10,0) default NULL,
|
||||||
id integer PRIMARY KEY,
|
"nb_rep3" decimal(10,0) default NULL,
|
||||||
"code" varchar(12) UNIQUE NOT NULL,
|
"nb_rep4" decimal(10,0) default NULL,
|
||||||
"libelle" varchar(30),
|
"tot_rep1" decimal(10,0) NOT NULL default '0',
|
||||||
"active" smallint DEFAULT 1 NOT NULL
|
"tot_rep2" decimal(10,0) default NULL,
|
||||||
);
|
"tot_rep3" decimal(10,0) default NULL,
|
||||||
|
"tot_rep4" decimal(10,0) default NULL
|
||||||
|
")""create" table llx_c_typent
|
||||||
|
(
|
||||||
|
id integer PRIMARY KEY,
|
||||||
|
"code" varchar(12) UNIQUE NOT NULL,
|
||||||
|
"libelle" varchar(30),
|
||||||
|
"active" smallint DEFAULT 1 NOT NULL
|
||||||
|
);
|
||||||
|
|||||||
@@ -1,24 +1,25 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ============================================================================
|
-- ============================================================================
|
||||||
-- Copyright (C) 2007 Laurent Destailleur <eldy@users.sourceforge.net>
|
-- Copyright (C) 2007 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- ============================================================================
|
-- Id: llx_categorie.key.sql,v 1.4 2007/12/02 22:03:22 eldy Exp
|
||||||
|
-- ============================================================================
|
||||||
ALTER TABLE llx_categorie ADD UNIQUE INDEX uk_categorie_ref (label,type);
|
|
||||||
|
ALTER TABLE llx_categorie ADD UNIQUE INDEX uk_categorie_ref (label,type);
|
||||||
|
|||||||
@@ -1,36 +1,34 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ============================================================================
|
-- ============================================================================
|
||||||
-- Copyright (C) 2005 Brice Davoleau <e1davole@iu-vannes.fr>
|
-- Copyright (C) 2005 Brice Davoleau <e1davole@iu-vannes.fr>
|
||||||
-- Copyright (C) 2005 Matthieu Valleton <mv@seeschloss.org>
|
-- Copyright (C) 2005 Matthieu Valleton <mv@seeschloss.org>
|
||||||
-- Copyright (C) 2005-2006 Regis Houssin <regis@dolibarr.fr>
|
-- Copyright (C) 2005-2006 Regis Houssin <regis@dolibarr.fr>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- Id: llx_categorie.sql,v 1.6 2007/12/02 22:03:22 eldy Exp
|
||||||
-- $Source$
|
-- ============================================================================
|
||||||
--
|
|
||||||
-- ============================================================================
|
create table llx_categorie
|
||||||
|
(
|
||||||
create table llx_categorie
|
rowid SERIAL PRIMARY KEY,
|
||||||
(
|
"label" VARCHAR(255), -- nom de la cat<61>gorie
|
||||||
rowid SERIAL PRIMARY KEY,
|
"description" text, -- description de la cat<61>gorie
|
||||||
"label" VARCHAR(255), -- nom de la cat<61>gorie
|
"visible" smallint DEFAULT 1 NOT NULL, -- determine si les produits sont visible ou pas
|
||||||
"description" text, -- description de la cat<61>gorie
|
"type" smallint DEFAULT 1 NOT NULL -- Type de cat<61>gorie (product, supplier, societe)
|
||||||
"visible" smallint DEFAULT 1 NOT NULL, -- determine si les produits sont visible ou pas
|
);
|
||||||
"type" smallint DEFAULT 1 NOT NULL -- Type de cat<61>gorie (product, supplier, societe)
|
|
||||||
);
|
|
||||||
|
|||||||
@@ -1,31 +1,32 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ============================================================================
|
-- ============================================================================
|
||||||
-- Copyright (C) 2005 Brice Davoleau <e1davole@iu-vannes.fr>
|
-- Copyright (C) 2005 Brice Davoleau <e1davole@iu-vannes.fr>
|
||||||
-- Copyright (C) 2005 Matthieu Valleton <mv@seeschloss.org>
|
-- Copyright (C) 2005 Matthieu Valleton <mv@seeschloss.org>
|
||||||
-- Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
-- Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- ============================================================================
|
-- Id: llx_categorie_association.key.sql,v 1.4 2007/12/02 22:03:22 eldy Exp
|
||||||
|
-- ============================================================================
|
||||||
|
|
||||||
ALTER TABLE llx_categorie_association ADD INDEX idx_categorie_association_fk_categorie_mere (fk_categorie_mere);
|
|
||||||
ALTER TABLE llx_categorie_association ADD INDEX idx_categorie_association_fk_categorie_fille (fk_categorie_fille);
|
ALTER TABLE llx_categorie_association ADD INDEX idx_categorie_association_fk_categorie_mere (fk_categorie_mere);
|
||||||
|
ALTER TABLE llx_categorie_association ADD INDEX idx_categorie_association_fk_categorie_fille (fk_categorie_fille);
|
||||||
ALTER TABLE llx_categorie_association ADD CONSTRAINT fk_categorie_asso_fk_categorie_mere FOREIGN KEY (fk_categorie_mere) REFERENCES llx_categorie (rowid);
|
|
||||||
ALTER TABLE llx_categorie_association ADD CONSTRAINT fk_categorie_asso_fk_categorie_fille FOREIGN KEY (fk_categorie_fille) REFERENCES llx_categorie (rowid);
|
ALTER TABLE llx_categorie_association ADD CONSTRAINT fk_categorie_asso_fk_categorie_mere FOREIGN KEY (fk_categorie_mere) REFERENCES llx_categorie (rowid);
|
||||||
|
ALTER TABLE llx_categorie_association ADD CONSTRAINT fk_categorie_asso_fk_categorie_fille FOREIGN KEY (fk_categorie_fille) REFERENCES llx_categorie (rowid);
|
||||||
|
|||||||
@@ -1,29 +1,30 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ============================================================================
|
-- ============================================================================
|
||||||
-- Copyright (C) 2005 Brice Davoleau <e1davole@iu-vannes.fr>
|
-- Copyright (C) 2005 Brice Davoleau <e1davole@iu-vannes.fr>
|
||||||
-- Copyright (C) 2005 Matthieu Valleton <mv@seeschloss.org>
|
-- Copyright (C) 2005 Matthieu Valleton <mv@seeschloss.org>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- ============================================================================
|
-- Id: llx_categorie_association.sql,v 1.2 2007/12/02 22:03:22 eldy Exp
|
||||||
|
-- ============================================================================
|
||||||
create table llx_categorie_association
|
|
||||||
(
|
create table llx_categorie_association
|
||||||
"fk_categorie_mere" integer NOT NULL,
|
(
|
||||||
"fk_categorie_fille" integer NOT NULL
|
"fk_categorie_mere" integer NOT NULL,
|
||||||
);
|
"fk_categorie_fille" integer NOT NULL
|
||||||
|
);
|
||||||
|
|||||||
@@ -1,34 +1,32 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ============================================================================
|
-- ============================================================================
|
||||||
-- Copyright (C) 2006 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
-- Copyright (C) 2006 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- $Id: llx_categorie_fournisseur.sql,v 1.2 2006/12/06 15:10:38 rodolphe Exp $
|
-- Id: llx_categorie_fournisseur.sql,v 1.3 2007/12/02 22:03:22 eldy Exp
|
||||||
-- $Source: /cvsroot/dolibarr/dolibarr/mysql/tables/llx_categorie_fournisseur.sql,v $
|
-- ============================================================================
|
||||||
--
|
|
||||||
-- ============================================================================
|
create table llx_categorie_fournisseur
|
||||||
|
(
|
||||||
create table llx_categorie_fournisseur
|
"fk_categorie" integer NOT NULL,
|
||||||
(
|
"fk_societe" integer NOT NULL,
|
||||||
"fk_categorie" integer NOT NULL,
|
UNIQUE(fk_categorie, fk_societe)
|
||||||
"fk_societe" integer NOT NULL,
|
);
|
||||||
UNIQUE(fk_categorie, fk_societe)
|
|
||||||
);
|
CREATE INDEX idx_llx_categorie_fournisseur_fk_categorie_fk_societe ON llx_categorie_fournisseur (fk_categorie, fk_societe);
|
||||||
|
|
||||||
CREATE INDEX idx_llx_categorie_fournisseur_fk_categorie_fk_societe ON llx_categorie_fournisseur (fk_categorie, fk_societe);
|
|
||||||
|
|||||||
@@ -1,31 +1,32 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ============================================================================
|
-- ============================================================================
|
||||||
-- Copyright (C) 2005 Brice Davoleau <e1davole@iu-vannes.fr>
|
-- Copyright (C) 2005 Brice Davoleau <e1davole@iu-vannes.fr>
|
||||||
-- Copyright (C) 2005 Matthieu Valleton <mv@seeschloss.org>
|
-- Copyright (C) 2005 Matthieu Valleton <mv@seeschloss.org>
|
||||||
-- Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
-- Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- ============================================================================
|
-- Id: llx_categorie_product.key.sql,v 1.4 2007/12/02 22:03:22 eldy Exp
|
||||||
|
-- ============================================================================
|
||||||
ALTER TABLE llx_categorie_product ADD PRIMARY KEY (fk_categorie, fk_product);
|
|
||||||
ALTER TABLE llx_categorie_product ADD INDEX idx_categorie_product_fk_categorie (fk_categorie);
|
ALTER TABLE llx_categorie_product ADD PRIMARY KEY (fk_categorie, fk_product);
|
||||||
ALTER TABLE llx_categorie_product ADD INDEX idx_categorie_product_fk_product (fk_product);
|
ALTER TABLE llx_categorie_product ADD INDEX idx_categorie_product_fk_categorie (fk_categorie);
|
||||||
|
ALTER TABLE llx_categorie_product ADD INDEX idx_categorie_product_fk_product (fk_product);
|
||||||
ALTER TABLE llx_categorie_product ADD CONSTRAINT fk_categorie_product_categorie_rowid FOREIGN KEY (fk_categorie) REFERENCES llx_categorie (rowid);
|
|
||||||
ALTER TABLE llx_categorie_product ADD CONSTRAINT fk_categorie_product_product_rowid FOREIGN KEY (fk_product) REFERENCES llx_product (rowid);
|
ALTER TABLE llx_categorie_product ADD CONSTRAINT fk_categorie_product_categorie_rowid FOREIGN KEY (fk_categorie) REFERENCES llx_categorie (rowid);
|
||||||
|
ALTER TABLE llx_categorie_product ADD CONSTRAINT fk_categorie_product_product_rowid FOREIGN KEY (fk_product) REFERENCES llx_product (rowid);
|
||||||
|
|||||||
@@ -1,29 +1,30 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ============================================================================
|
-- ============================================================================
|
||||||
-- Copyright (C) 2005 Brice Davoleau <e1davole@iu-vannes.fr>
|
-- Copyright (C) 2005 Brice Davoleau <e1davole@iu-vannes.fr>
|
||||||
-- Copyright (C) 2005 Matthieu Valleton <mv@seeschloss.org>
|
-- Copyright (C) 2005 Matthieu Valleton <mv@seeschloss.org>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- ============================================================================
|
-- Id: llx_categorie_product.sql,v 1.2 2007/12/02 22:03:22 eldy Exp
|
||||||
|
-- ============================================================================
|
||||||
create table llx_categorie_product
|
|
||||||
(
|
create table llx_categorie_product
|
||||||
"fk_categorie" integer NOT NULL,
|
(
|
||||||
"fk_product" integer NOT NULL
|
"fk_categorie" integer NOT NULL,
|
||||||
);
|
"fk_product" integer NOT NULL
|
||||||
|
);
|
||||||
|
|||||||
@@ -1,29 +1,30 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ============================================================================
|
-- ============================================================================
|
||||||
-- Copyright (C) 2007 Patrick Raguin <patrick.raguin@gmail.com>
|
-- Copyright (C) 2007 Patrick Raguin <patrick.raguin@gmail.com>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- ============================================================================
|
-- Id: llx_compta.sql,v 1.4 2004/10/09 10:47:16 opensides Exp
|
||||||
|
-- ============================================================================
|
||||||
ALTER TABLE llx_categorie_societe ADD PRIMARY KEY (fk_categorie, fk_societe);
|
|
||||||
ALTER TABLE llx_categorie_societe ADD INDEX idx_categorie_societe_fk_categorie (fk_categorie);
|
ALTER TABLE llx_categorie_societe ADD PRIMARY KEY (fk_categorie, fk_societe);
|
||||||
ALTER TABLE llx_categorie_societe ADD INDEX idx_categorie_societe_fk_societe (fk_societe);
|
ALTER TABLE llx_categorie_societe ADD INDEX idx_categorie_societe_fk_categorie (fk_categorie);
|
||||||
|
ALTER TABLE llx_categorie_societe ADD INDEX idx_categorie_societe_fk_societe (fk_societe);
|
||||||
ALTER TABLE llx_categorie_societe ADD CONSTRAINT fk_categorie_societe_categorie_rowid FOREIGN KEY (fk_categorie) REFERENCES llx_categorie (rowid);
|
|
||||||
ALTER TABLE llx_categorie_societe ADD CONSTRAINT fk_categorie_societe_fk_soc FOREIGN KEY (fk_societe) REFERENCES llx_societe (rowid);
|
ALTER TABLE llx_categorie_societe ADD CONSTRAINT fk_categorie_societe_categorie_rowid FOREIGN KEY (fk_categorie) REFERENCES llx_categorie (rowid);
|
||||||
|
ALTER TABLE llx_categorie_societe ADD CONSTRAINT fk_categorie_societe_fk_soc FOREIGN KEY (fk_societe) REFERENCES llx_societe (rowid);
|
||||||
|
|||||||
@@ -1,28 +1,29 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ============================================================================
|
-- ============================================================================
|
||||||
-- Copyright (C) 2007 Patrick Raguin <patrick.raguin@gmail.com>
|
-- Copyright (C) 2007 Patrick Raguin <patrick.raguin@gmail.com>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- ============================================================================
|
-- Id: llx_compta.sql,v 1.4 2004/10/09 10:47:16 opensides Exp
|
||||||
|
-- ============================================================================
|
||||||
create table llx_categorie_societe
|
|
||||||
(
|
create table llx_categorie_societe
|
||||||
"fk_categorie" integer NOT NULL,
|
(
|
||||||
"fk_societe" integer NOT NULL
|
"fk_categorie" integer NOT NULL,
|
||||||
);
|
"fk_societe" integer NOT NULL
|
||||||
|
);
|
||||||
|
|||||||
@@ -1,39 +1,39 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ========================================================================
|
-- ========================================================================
|
||||||
-- Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
-- Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- Id: llx_chargesociales.sql,v 1.7 2007/11/27 05:20:53 eldy Exp
|
||||||
-- $Source$
|
-- $Source$
|
||||||
--
|
--
|
||||||
-- ========================================================================
|
-- ========================================================================
|
||||||
|
|
||||||
create table llx_chargesociales
|
create table llx_chargesociales
|
||||||
(
|
(
|
||||||
rowid SERIAL PRIMARY KEY,
|
rowid SERIAL PRIMARY KEY,
|
||||||
"date_ech" timestamp, -- date d'echeance
|
"date_ech" timestamp, -- date d'echeance
|
||||||
"libelle" varchar(80),
|
"libelle" varchar(80) NOT NULL,
|
||||||
"fk_type" integer,
|
"fk_type" integer NOT NULL,
|
||||||
"amount" real default 0 NOT NULL,
|
"amount" real default 0 NOT NULL,
|
||||||
"paye" smallint default 0 NOT NULL,
|
"paye" smallint default 0 NOT NULL,
|
||||||
"periode" date
|
"periode" date
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,35 +1,34 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ===================================================================
|
-- ===================================================================
|
||||||
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- Id: llx_co_fa.sql,v 1.3 2007/12/02 22:03:23 eldy Exp
|
||||||
-- $Source$
|
-- ===================================================================
|
||||||
-- ===================================================================
|
|
||||||
|
|
||||||
|
create table llx_co_fa
|
||||||
create table llx_co_fa
|
(
|
||||||
(
|
rowid SERIAL PRIMARY KEY,
|
||||||
rowid SERIAL PRIMARY KEY,
|
"fk_commande" integer NOT NULL,
|
||||||
"fk_commande" integer NOT NULL,
|
"fk_facture" integer NOT NULL
|
||||||
"fk_facture" integer NOT NULL
|
);
|
||||||
);
|
|
||||||
|
CREATE INDEX idx_llx_co_fa_fk_commande ON llx_co_fa (fk_commande);
|
||||||
CREATE INDEX idx_llx_co_fa_fk_commande ON llx_co_fa (fk_commande);
|
CREATE INDEX idx_llx_co_fa_fk_facture ON llx_co_fa (fk_facture);
|
||||||
CREATE INDEX idx_llx_co_fa_fk_facture ON llx_co_fa (fk_facture);
|
|
||||||
|
|||||||
@@ -1,31 +1,30 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ===================================================================
|
-- ===================================================================
|
||||||
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- Id: llx_co_pr.sql,v 1.3 2007/12/02 22:03:23 eldy Exp
|
||||||
-- $Source$
|
-- ===================================================================
|
||||||
-- ===================================================================
|
|
||||||
|
create table llx_co_pr
|
||||||
create table llx_co_pr
|
(
|
||||||
(
|
rowid SERIAL PRIMARY KEY,
|
||||||
rowid SERIAL PRIMARY KEY,
|
"fk_commande" integer,
|
||||||
"fk_commande" integer,
|
"fk_propale" integer
|
||||||
"fk_propale" integer
|
);
|
||||||
);
|
|
||||||
|
|||||||
@@ -1,36 +1,35 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ===================================================================
|
-- ===================================================================
|
||||||
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
-- Copyright (C) 2005-2006 Regis Houssin <regis@dolibarr.fr>
|
-- Copyright (C) 2005-2006 Regis Houssin <regis@dolibarr.fr>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- Id: llx_comfourn_facfourn.sql,v 1.3 2007/12/02 22:03:23 eldy Exp
|
||||||
-- $Source$
|
-- ===================================================================
|
||||||
-- ===================================================================
|
|
||||||
|
|
||||||
|
create table llx_comfourn_facfourn
|
||||||
create table llx_comfourn_facfourn
|
(
|
||||||
(
|
rowid SERIAL PRIMARY KEY,
|
||||||
rowid SERIAL PRIMARY KEY,
|
"fk_commande" integer NOT NULL,
|
||||||
"fk_commande" integer NOT NULL,
|
"fk_facture" integer NOT NULL
|
||||||
"fk_facture" integer NOT NULL
|
);
|
||||||
);
|
|
||||||
|
CREATE INDEX idx_llx_comfourn_facfourn_fk_commande ON llx_comfourn_facfourn (fk_commande);
|
||||||
CREATE INDEX idx_llx_comfourn_facfourn_fk_commande ON llx_comfourn_facfourn (fk_commande);
|
CREATE INDEX idx_llx_comfourn_facfourn_fk_facture ON llx_comfourn_facfourn (fk_facture);
|
||||||
CREATE INDEX idx_llx_comfourn_facfourn_fk_facture ON llx_comfourn_facfourn (fk_facture);
|
|
||||||
|
|||||||
@@ -1,32 +1,30 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ============================================================================
|
-- ============================================================================
|
||||||
-- Copyright (C) 2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
-- Copyright (C) 2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- Id: llx_commande.key.sql,v 1.3 2007/12/02 22:03:23 eldy Exp
|
||||||
-- $Source$
|
-- ============================================================================
|
||||||
--
|
|
||||||
-- ============================================================================
|
|
||||||
|
-- Supprimme orphelins pour permettre mont<6E>e de la cl<63>
|
||||||
|
-- V4 DELETE llx_commande FROM llx_commande LEFT JOIN llx_societe ON llx_commande.fk_soc = llx_societe.rowid WHERE llx_societe.rowid IS NULL;
|
||||||
-- Supprimme orphelins pour permettre mont<6E>e de la cl<63>
|
|
||||||
-- V4 DELETE llx_commande FROM llx_commande LEFT JOIN llx_societe ON llx_commande.fk_soc = llx_societe.rowid WHERE llx_societe.rowid IS NULL;
|
ALTER TABLE llx_commande ADD INDEX idx_commande_fk_soc (fk_soc);
|
||||||
|
ALTER TABLE llx_commande ADD CONSTRAINT fk_commande_fk_soc FOREIGN KEY (fk_soc) REFERENCES llx_societe (rowid);
|
||||||
ALTER TABLE llx_commande ADD INDEX idx_commande_fk_soc (fk_soc);
|
|
||||||
ALTER TABLE llx_commande ADD CONSTRAINT fk_commande_fk_soc FOREIGN KEY (fk_soc) REFERENCES llx_societe (rowid);
|
|
||||||
|
|||||||
@@ -1,65 +1,63 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ===================================================================
|
-- ===================================================================
|
||||||
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- Id: llx_commande.sql,v 1.15 2007/12/02 22:03:23 eldy Exp
|
||||||
-- $Source$
|
-- ===================================================================
|
||||||
--
|
|
||||||
-- ===================================================================
|
|
||||||
|
|
||||||
|
|
||||||
|
create table llx_commande
|
||||||
|
(
|
||||||
create table llx_commande
|
rowid SERIAL PRIMARY KEY,
|
||||||
(
|
"tms" timestamp,
|
||||||
rowid SERIAL PRIMARY KEY,
|
"fk_soc" integer NOT NULL,
|
||||||
"tms" timestamp,
|
"fk_projet" integer DEFAULT 0, -- projet auquel est rattache la commande
|
||||||
"fk_soc" integer NOT NULL,
|
"ref" varchar(30) NOT NULL, -- order number
|
||||||
"fk_projet" integer DEFAULT 0, -- projet auquel est rattache la commande
|
"ref_client" varchar(30), -- customer order number
|
||||||
"ref" varchar(30) NOT NULL, -- order number
|
"date_creation" timestamp, -- date de creation
|
||||||
"ref_client" varchar(30), -- customer order number
|
"date_valid" timestamp, -- date de validation
|
||||||
"date_creation" timestamp, -- date de creation
|
"date_cloture" timestamp, -- date de cloture
|
||||||
"date_valid" timestamp, -- date de validation
|
"date_commande" date, -- date de la commande
|
||||||
"date_cloture" timestamp, -- date de cloture
|
"fk_user_author" integer, -- createur de la commande
|
||||||
"date_commande" date, -- date de la commande
|
"fk_user_valid" integer, -- valideur de la commande
|
||||||
"fk_user_author" integer, -- createur de la commande
|
"fk_user_cloture" integer, -- auteur cloture
|
||||||
"fk_user_valid" integer, -- valideur de la commande
|
"source" smallint NOT NULL,
|
||||||
"fk_user_cloture" integer, -- auteur cloture
|
"fk_statut" smallint default 0,
|
||||||
"source" smallint NOT NULL,
|
"amount_ht" real default 0,
|
||||||
"fk_statut" smallint default 0,
|
"remise_percent" real default 0,
|
||||||
"amount_ht" real default 0,
|
"remise_absolue" real default 0,
|
||||||
"remise_percent" real default 0,
|
"remise" real default 0,
|
||||||
"remise_absolue" real default 0,
|
"tva" real(24,8) default 0,
|
||||||
"remise" real default 0,
|
"total_ht" real(24,8) default 0,
|
||||||
"tva" real(16,8) default 0,
|
"total_ttc" real(24,8) default 0,
|
||||||
"total_ht" real(16,8) default 0,
|
"note" text,
|
||||||
"total_ttc" real(16,8) default 0,
|
"note_public" text,
|
||||||
"note" text,
|
"model_pdf" varchar(50),
|
||||||
"note_public" text,
|
"facture" smallint default 0,
|
||||||
"model_pdf" varchar(50),
|
"fk_cond_reglement" integer, -- condition de r<>glement
|
||||||
"facture" smallint default 0,
|
"fk_mode_reglement" integer, -- mode de r<>glement
|
||||||
"fk_cond_reglement" integer, -- condition de r<>glement
|
"date_livraison" date default NULL,
|
||||||
"fk_mode_reglement" integer, -- mode de r<>glement
|
"fk_adresse_livraison" integer, -- adresse de livraison
|
||||||
"date_livraison" date default NULL,
|
UNIQUE(ref)
|
||||||
"fk_adresse_livraison" integer, -- adresse de livraison
|
);
|
||||||
UNIQUE(ref)
|
|
||||||
);
|
CREATE INDEX idx_llx_commande_ref ON llx_commande (ref);
|
||||||
|
|
||||||
CREATE INDEX idx_llx_commande_ref ON llx_commande (ref);
|
|
||||||
|
|||||||
@@ -1,34 +1,32 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ============================================================================
|
-- ============================================================================
|
||||||
-- Copyright (C) 2006-2007 Laurent Destailleur <eldy@users.sourceforge.net>
|
-- Copyright (C) 2006-2007 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- Id: llx_commande_fournisseur.key.sql,v 1.4 2007/12/02 22:03:23 eldy Exp
|
||||||
-- $Source$
|
-- ============================================================================
|
||||||
--
|
|
||||||
-- ============================================================================
|
|
||||||
|
-- Supprimme orphelins pour permettre mont<6E>e de la cl<63>
|
||||||
|
-- V4 DELETE llx_commande_fournisseur FROM llx_commande_fournisseur LEFT JOIN llx_societe ON llx_commande_fournisseur.fk_soc = llx_societe.rowid WHERE llx_societe.rowid IS NULL;
|
||||||
-- Supprimme orphelins pour permettre mont<6E>e de la cl<63>
|
|
||||||
-- V4 DELETE llx_commande_fournisseur FROM llx_commande_fournisseur LEFT JOIN llx_societe ON llx_commande_fournisseur.fk_soc = llx_societe.rowid WHERE llx_societe.rowid IS NULL;
|
ALTER TABLE llx_commande_fournisseur ADD UNIQUE INDEX uk_commande_fournisseur_ref (ref, fk_soc);
|
||||||
|
|
||||||
ALTER TABLE llx_commande_fournisseur ADD UNIQUE INDEX uk_commande_fournisseur_ref (ref, fk_soc);
|
ALTER TABLE llx_commande_fournisseur ADD INDEX idx_commande_fournisseur_fk_soc (fk_soc);
|
||||||
|
ALTER TABLE llx_commande_fournisseur ADD CONSTRAINT fk_commande_fournisseur_fk_soc FOREIGN KEY (fk_soc) REFERENCES llx_societe (rowid);
|
||||||
ALTER TABLE llx_commande_fournisseur ADD INDEX idx_commande_fournisseur_fk_soc (fk_soc);
|
|
||||||
ALTER TABLE llx_commande_fournisseur ADD CONSTRAINT fk_commande_fournisseur_fk_soc FOREIGN KEY (fk_soc) REFERENCES llx_societe (rowid);
|
|
||||||
|
|||||||
@@ -1,56 +1,54 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ===================================================================
|
-- ===================================================================
|
||||||
-- Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
-- Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
-- Copyright (C) 2007 Laurent Destailleur <eldy@users.sourceforge.net>
|
-- Copyright (C) 2007 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- Id: llx_commande_fournisseur.sql,v 1.8 2007/12/02 22:03:23 eldy Exp
|
||||||
-- $Source$
|
-- ===================================================================
|
||||||
--
|
|
||||||
-- ===================================================================
|
|
||||||
|
|
||||||
|
create table llx_commande_fournisseur
|
||||||
|
(
|
||||||
create table llx_commande_fournisseur
|
rowid SERIAL PRIMARY KEY,
|
||||||
(
|
"tms" timestamp,
|
||||||
rowid SERIAL PRIMARY KEY,
|
"fk_soc" integer NOT NULL,
|
||||||
"tms" timestamp,
|
"fk_projet" integer DEFAULT 0, -- projet auquel est rattache la commande
|
||||||
"fk_soc" integer NOT NULL,
|
"ref" varchar(30) NOT NULL, -- order number
|
||||||
"fk_projet" integer DEFAULT 0, -- projet auquel est rattache la commande
|
"date_creation" timestamp, -- date de creation
|
||||||
"ref" varchar(30) NOT NULL, -- order number
|
"date_valid" timestamp, -- date de validation
|
||||||
"date_creation" timestamp, -- date de creation
|
"date_cloture" timestamp, -- date de cloture
|
||||||
"date_valid" timestamp, -- date de validation
|
"date_commande" date, -- date de la commande
|
||||||
"date_cloture" timestamp, -- date de cloture
|
"fk_user_author" integer, -- createur de la commande
|
||||||
"date_commande" date, -- date de la commande
|
"fk_user_valid" integer, -- valideur de la commande
|
||||||
"fk_user_author" integer, -- createur de la commande
|
"fk_user_cloture" integer, -- auteur cloture
|
||||||
"fk_user_valid" integer, -- valideur de la commande
|
"source" smallint NOT NULL,
|
||||||
"fk_user_cloture" integer, -- auteur cloture
|
"fk_statut" smallint default 0,
|
||||||
"source" smallint NOT NULL,
|
"amount_ht" real default 0,
|
||||||
"fk_statut" smallint default 0,
|
"remise_percent" real default 0,
|
||||||
"amount_ht" real default 0,
|
"remise" real default 0,
|
||||||
"remise_percent" real default 0,
|
"tva" real(24,8) default 0,
|
||||||
"remise" real default 0,
|
"total_ht" real(24,8) default 0,
|
||||||
"tva" real(16,8) default 0,
|
"total_ttc" real(24,8) default 0,
|
||||||
"total_ht" real(16,8) default 0,
|
"note" text,
|
||||||
"total_ttc" real(16,8) default 0,
|
"note_public" text,
|
||||||
"note" text,
|
"model_pdf" varchar(50),
|
||||||
"note_public" text,
|
"fk_methode_commande" integer default 0
|
||||||
"model_pdf" varchar(50),
|
);
|
||||||
"fk_methode_commande" integer default 0
|
|
||||||
);
|
|
||||||
|
|||||||
@@ -1,26 +1,25 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ===================================================================
|
-- ===================================================================
|
||||||
-- Copyright (C) 2006 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
-- Copyright (C) 2006 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- $Id: llx_commande_fournisseur_dispatch.key.sql,v 1.1 2006/12/11 17:39:39 rodolphe Exp $
|
-- Id: llx_commande_fournisseur_dispatch.key.sql,v 1.2 2007/12/02 22:03:23 eldy Exp
|
||||||
-- $Source: /cvsroot/dolibarr/dolibarr/mysql/tables/llx_commande_fournisseur_dispatch.key.sql,v $
|
-- ===================================================================
|
||||||
-- ===================================================================
|
|
||||||
|
|
||||||
ALTER TABLE llx_commande_fournisseur_dispatch ADD INDEX (fk_commande);
|
ALTER TABLE llx_commande_fournisseur_dispatch ADD INDEX (fk_commande);
|
||||||
@@ -1,35 +1,34 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ===================================================================
|
-- ===================================================================
|
||||||
-- Copyright (C) 2006 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
-- Copyright (C) 2006 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- $Id: llx_commande_fournisseur_dispatch.sql,v 1.1 2006/12/11 17:42:13 rodolphe Exp $
|
-- Id: llx_commande_fournisseur_dispatch.sql,v 1.2 2007/12/02 22:03:23 eldy Exp
|
||||||
-- $Source: /cvsroot/dolibarr/dolibarr/mysql/tables/llx_commande_fournisseur_dispatch.sql,v $
|
-- ===================================================================
|
||||||
-- ===================================================================
|
|
||||||
|
create table llx_commande_fournisseur_dispatch
|
||||||
create table llx_commande_fournisseur_dispatch
|
(
|
||||||
(
|
rowid SERIAL PRIMARY KEY,
|
||||||
rowid SERIAL PRIMARY KEY,
|
"fk_commande" integer,
|
||||||
"fk_commande" integer,
|
"fk_product" integer,
|
||||||
"fk_product" integer,
|
"qty" float, -- quantit<69>
|
||||||
"qty" float, -- quantit<69>
|
"fk_entrepot" integer,
|
||||||
"fk_entrepot" integer,
|
"fk_user" integer,
|
||||||
"fk_user" integer,
|
"datec" timestamp
|
||||||
"datec" timestamp
|
);
|
||||||
);
|
|
||||||
|
|||||||
@@ -1,35 +1,33 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ===================================================================
|
-- ===================================================================
|
||||||
-- Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
-- Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- Id: llx_commande_fournisseur_log.sql,v 1.2 2007/12/02 22:03:23 eldy Exp
|
||||||
-- $Source$
|
-- ===================================================================
|
||||||
--
|
|
||||||
-- ===================================================================
|
create table llx_commande_fournisseur_log
|
||||||
|
(
|
||||||
create table llx_commande_fournisseur_log
|
rowid SERIAL PRIMARY KEY,
|
||||||
(
|
"tms" timestamp,
|
||||||
rowid SERIAL PRIMARY KEY,
|
"datelog" timestamp,
|
||||||
"tms" timestamp,
|
"fk_commande" integer NOT NULL,
|
||||||
"datelog" timestamp,
|
"fk_statut" smallint NOT NULL,
|
||||||
"fk_commande" integer NOT NULL,
|
"fk_user" integer NOT NULL
|
||||||
"fk_statut" smallint NOT NULL,
|
);
|
||||||
"fk_user" integer NOT NULL
|
|
||||||
);
|
|
||||||
|
|||||||
@@ -1,45 +1,44 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ===================================================================
|
-- ===================================================================
|
||||||
-- Copyright (C) 2007 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
-- Copyright (C) 2007 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
-- Copyright (C) 2007 Laurent Destailleur <eldy@users.sourceforge.net>
|
-- Copyright (C) 2007 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- Id: llx_commande_fournisseurdet.sql,v 1.8 2007/12/02 22:03:23 eldy Exp
|
||||||
-- $Source$
|
-- ===================================================================
|
||||||
-- ===================================================================
|
|
||||||
|
create table llx_commande_fournisseurdet
|
||||||
create table llx_commande_fournisseurdet
|
(
|
||||||
(
|
rowid SERIAL PRIMARY KEY,
|
||||||
rowid SERIAL PRIMARY KEY,
|
"fk_commande" integer NOT NULL,
|
||||||
"fk_commande" integer,
|
"fk_product" integer NOT NULL,
|
||||||
"fk_product" integer,
|
"ref" varchar(50),
|
||||||
"ref" varchar(50),
|
"label" varchar(255),
|
||||||
"label" varchar(255),
|
"description" text,
|
||||||
"description" text,
|
"tva_tx" real(6,3) DEFAULT 0, -- taux tva
|
||||||
"tva_tx" real(6,3), -- taux tva
|
"qty" real, -- quantit<69>
|
||||||
"qty" real, -- quantit<69>
|
"remise_percent" real DEFAULT 0, -- pourcentage de remise
|
||||||
"remise_percent" real DEFAULT 0, -- pourcentage de remise
|
"remise" real DEFAULT 0, -- montant de la remise
|
||||||
"remise" real DEFAULT 0, -- montant de la remise
|
"price" real, -- prix final
|
||||||
"price" real, -- prix final
|
"subprice" real(24,8) DEFAULT 0, -- prix unitaire
|
||||||
"subprice" real(16,8), -- prix unitaire
|
"total_ht" real(24,8) DEFAULT 0, -- Total HT de la ligne toute quantit<69> et incluant remise ligne et globale
|
||||||
"total_ht" real(16,8), -- Total HT de la ligne toute quantit<69> et incluant remise ligne et globale
|
"total_tva" real(24,8) DEFAULT 0, -- Total TVA de la ligne toute quantit<69> et incluant remise ligne et globale
|
||||||
"total_tva" real(16,8), -- Total TVA de la ligne toute quantit<69> et incluant remise ligne et globale
|
"total_ttc" real(24,8) DEFAULT 0, -- Total TTC de la ligne toute quantit<69> et incluant remise ligne et globale
|
||||||
"total_ttc" real(16,8), -- Total TTC de la ligne toute quantit<69> et incluant remise ligne et globale
|
"info_bits" integer DEFAULT 0 -- TVA NPR ou non
|
||||||
"info_bits" integer DEFAULT 0 -- TVA NPR ou non
|
);
|
||||||
);
|
|
||||||
|
|||||||
@@ -1,31 +1,30 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ===================================================================
|
-- ===================================================================
|
||||||
-- Copyright (C) 2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
-- Copyright (C) 2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- $Id: llx_commandedet.key.sql,v 1.2 2006/11/01 15:15:15 eldy Exp $
|
-- Id: llx_commandedet.key.sql,v 1.3 2007/12/02 22:03:23 eldy Exp
|
||||||
-- $Source: /cvsroot/dolibarr/dolibarr/mysql/tables/llx_commandedet.key.sql,v $
|
-- ===================================================================
|
||||||
-- ===================================================================
|
|
||||||
|
|
||||||
|
-- Supprimme orhpelins pour permettre mont<6E>e de la cl<63>
|
||||||
-- Supprimme orhpelins pour permettre mont<6E>e de la cl<63>
|
-- V4 DELETE llx_commandedet FROM llx_commandedet LEFT JOIN llx_commande ON llx_commandedet.fk_commande = llx_commande.rowid WHERE llx_commande.rowid IS NULL;
|
||||||
-- V4 DELETE llx_commandedet FROM llx_commandedet LEFT JOIN llx_commande ON llx_commandedet.fk_commande = llx_commande.rowid WHERE llx_commande.rowid IS NULL;
|
|
||||||
|
ALTER TABLE llx_commandedet ADD INDEX idx_commandedet_fk_commande (fk_commande);
|
||||||
ALTER TABLE llx_commandedet ADD INDEX idx_commandedet_fk_commande (fk_commande);
|
-- V4 ALTER TABLE llx_commandedet ADD CONSTRAINT fk_commandedet_fk_commande FOREIGN KEY (fk_commande) REFERENCES llx_commande (rowid);
|
||||||
-- V4 ALTER TABLE llx_commandedet ADD CONSTRAINT fk_commandedet_fk_commande FOREIGN KEY (fk_commande) REFERENCES llx_commande (rowid);
|
|
||||||
|
|||||||
@@ -1,54 +1,54 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ===================================================================
|
-- ===================================================================
|
||||||
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
-- Copyright (C) 2006-2007 Laurent Destailleur <eldy@users.sourceforge.net>
|
-- Copyright (C) 2006-2007 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- Id: llx_commandedet.sql,v 1.15 2007/12/02 22:03:23 eldy Exp
|
||||||
-- $Source$
|
-- ===================================================================
|
||||||
-- ===================================================================
|
|
||||||
|
create table llx_commandedet
|
||||||
create table llx_commandedet
|
(
|
||||||
(
|
rowid SERIAL PRIMARY KEY,
|
||||||
rowid SERIAL PRIMARY KEY,
|
"fk_commande" integer,
|
||||||
"fk_commande" integer,
|
"fk_product" integer,
|
||||||
"fk_product" integer,
|
"description" text,
|
||||||
"description" text,
|
"tva_tx" real(6,3), -- taux tva
|
||||||
"tva_tx" real(6,3), -- taux tva
|
"qty" real, -- quantit<EFBFBD>
|
||||||
"qty" real, -- quantit<69>
|
"remise_percent" real DEFAULT 0, -- pourcentage de remise
|
||||||
"remise_percent" real DEFAULT 0, -- pourcentage de remise
|
"remise" real DEFAULT 0, -- montant de la remise
|
||||||
"remise" real DEFAULT 0, -- montant de la remise
|
"fk_remise_except" integer NULL, -- Lien vers table des remises fixes
|
||||||
"fk_remise_except" integer NULL, -- Lien vers table des remises fixes
|
"price" real, -- prix final
|
||||||
"price" real, -- prix final
|
"subprice" real(24,8) DEFAULT 0, -- prix unitaire
|
||||||
"subprice" real(16,8), -- prix unitaire
|
"total_ht" real(24,8) DEFAULT 0, -- Total HT de la ligne toute quantit<69> et incluant remise ligne et globale
|
||||||
"total_ht" real(16,8), -- Total HT de la ligne toute quantit<69> et incluant remise ligne et globale
|
"total_tva" real(24,8) DEFAULT 0, -- Total TVA de la ligne toute quantit<69> et incluant remise ligne et globale
|
||||||
"total_tva" real(16,8), -- Total TVA de la ligne toute quantit<69> et incluant remise ligne et globale
|
"total_ttc" real(24,8) DEFAULT 0, -- Total TTC de la ligne toute quantit<69> et incluant remise ligne et globale
|
||||||
"total_ttc" real(16,8), -- Total TTC de la ligne toute quantit<69> et incluant remise ligne et globale
|
"info_bits" integer DEFAULT 0, -- TVA NPR ou non
|
||||||
"info_bits" integer DEFAULT 0, -- TVA NPR ou non
|
"marge_tx" real(6,3) DEFAULT 0, -- taux de marge (marge sur prix d'achat)
|
||||||
"marge_tx" real, -- taux de marge (marge sur prix d'achat)
|
"marque_tx" real(6,3) DEFAULT 0, -- taux de marque (marge sur prix de vente)
|
||||||
"marque_tx" real, -- taux de marque (marge sur prix de vente)
|
"special_code" int2 DEFAULT 0, -- code pour les lignes speciales
|
||||||
"special_code" int2 DEFAULT 0, -- code pour les lignes speciales
|
"rang" integer DEFAULT 0
|
||||||
"rang" integer DEFAULT 0
|
);
|
||||||
);
|
|
||||||
|
--
|
||||||
--
|
-- Liste des codes pour special_code
|
||||||
-- Liste des codes pour special_code
|
--
|
||||||
--
|
-- 1 : frais de port
|
||||||
-- 1 : frais de port
|
-- 2 : ecotaxe
|
||||||
--
|
--
|
||||||
@@ -1,40 +1,38 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ===================================================================
|
-- ===================================================================
|
||||||
-- Copyright (C) 2000-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
-- Copyright (C) 2000-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- This program is free software; you can redistribute it and/or modify
|
||||||
-- $Source$
|
-- it under the terms of the GNU General Public License as published by
|
||||||
--
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- (at your option) any later version.
|
||||||
-- it under the terms of the GNU General Public License as published by
|
--
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- (at your option) any later version.
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
--
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- GNU General Public License for more details.
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
--
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- GNU General Public License for more details.
|
-- along with this program; if not, write to the Free Software
|
||||||
--
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
-- You should have received a copy of the GNU General Public License
|
--
|
||||||
-- along with this program; if not, write to the Free Software
|
-- Id: llx_compta.sql,v 1.5 2007/12/02 22:03:23 eldy Exp
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- ===================================================================
|
||||||
--
|
|
||||||
-- ===================================================================
|
|
||||||
|
create table llx_compta
|
||||||
|
(
|
||||||
create table llx_compta
|
rowid SERIAL PRIMARY KEY,
|
||||||
(
|
"datec" timestamp,
|
||||||
rowid SERIAL PRIMARY KEY,
|
"datev" date, -- date de valeur
|
||||||
"datec" timestamp,
|
"amount" real DEFAULT 0 NOT NULL ,
|
||||||
"datev" date, -- date de valeur
|
"label" varchar(255),
|
||||||
"amount" real DEFAULT 0 NOT NULL ,
|
"fk_compta_account" integer,
|
||||||
"label" varchar(255),
|
"fk_user_author" integer,
|
||||||
"fk_compta_account" integer,
|
"fk_user_valid" integer,
|
||||||
"fk_user_author" integer,
|
"valid" smallint DEFAULT 0,
|
||||||
"fk_user_valid" integer,
|
"note" text
|
||||||
"valid" smallint DEFAULT 0,
|
);
|
||||||
"note" text
|
|
||||||
);
|
|
||||||
|
|||||||
@@ -1,36 +1,37 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ===================================================================
|
-- ===================================================================
|
||||||
-- Copyright (C) 2000-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
-- Copyright (C) 2000-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- Id: llx_compta_account.sql,v 1.4 2007/12/02 22:03:23 eldy Exp
|
||||||
-- $Source$
|
-- $Source$
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- ===================================================================
|
-- Id: llx_compta_account.sql,v 1.4 2007/12/02 22:03:23 eldy Exp
|
||||||
|
-- ===================================================================
|
||||||
|
|
||||||
create table llx_compta_account
|
|
||||||
(
|
create table llx_compta_account
|
||||||
rowid SERIAL PRIMARY KEY,
|
(
|
||||||
"datec" timestamp,
|
rowid SERIAL PRIMARY KEY,
|
||||||
"number" varchar(12),
|
"datec" timestamp,
|
||||||
"label" varchar(255),
|
"number" varchar(12),
|
||||||
"fk_user_author" integer,
|
"label" varchar(255),
|
||||||
"note" text
|
"fk_user_author" integer,
|
||||||
);
|
"note" text
|
||||||
|
);
|
||||||
|
|||||||
@@ -1,39 +1,37 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ===================================================================
|
-- ===================================================================
|
||||||
-- Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
-- Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- Id: llx_compta_compte_generaux.sql,v 1.3 2007/12/02 22:03:23 eldy Exp
|
||||||
-- $Source$
|
-- ===================================================================
|
||||||
--
|
|
||||||
-- ===================================================================
|
|
||||||
|
create table llx_compta_compte_generaux
|
||||||
|
(
|
||||||
create table llx_compta_compte_generaux
|
rowid SERIAL PRIMARY KEY,
|
||||||
(
|
"date_creation" timestamp,
|
||||||
rowid SERIAL PRIMARY KEY,
|
"numero" varchar(50),
|
||||||
"date_creation" timestamp,
|
"intitule" varchar(255),
|
||||||
"numero" varchar(50),
|
"fk_user_author" integer,
|
||||||
"intitule" varchar(255),
|
"note" text,
|
||||||
"fk_user_author" integer,
|
UNIQUE(numero)
|
||||||
"note" text,
|
);
|
||||||
UNIQUE(numero)
|
|
||||||
);
|
CREATE INDEX idx_llx_compta_compte_generaux_numero ON llx_compta_compte_generaux (numero);
|
||||||
|
|
||||||
CREATE INDEX idx_llx_compta_compte_generaux_numero ON llx_compta_compte_generaux (numero);
|
|
||||||
|
|||||||
@@ -1,38 +1,36 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ============================================================================
|
-- ============================================================================
|
||||||
-- Copyright (C) 2002-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
-- Copyright (C) 2002-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- Id: llx_cond_reglement.sql,v 1.8 2007/12/02 22:03:23 eldy Exp
|
||||||
-- $Source$
|
-- ============================================================================
|
||||||
--
|
|
||||||
-- ============================================================================
|
create table llx_cond_reglement
|
||||||
|
(
|
||||||
create table llx_cond_reglement
|
rowid integer PRIMARY KEY,
|
||||||
(
|
"code" varchar(16),
|
||||||
rowid integer PRIMARY KEY,
|
"sortorder" smallint,
|
||||||
"code" varchar(16),
|
"active" smallint DEFAULT 1,
|
||||||
"sortorder" smallint,
|
"libelle" varchar(255),
|
||||||
"active" smallint DEFAULT 1,
|
"libelle_facture" text,
|
||||||
"libelle" varchar(255),
|
"fdm" smallint, -- reglement fin de mois
|
||||||
"libelle_facture" text,
|
"nbjour" smallint,
|
||||||
"fdm" smallint, -- reglement fin de mois
|
"decalage" smallint
|
||||||
"nbjour" smallint,
|
);
|
||||||
"decalage" smallint
|
|
||||||
);
|
|
||||||
|
|||||||
@@ -1,43 +1,42 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ============================================================================
|
-- ============================================================================
|
||||||
-- Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
-- Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
-- Copyright (C) 2003 Jean-Louis Bergamo <jlb@j1b.org>
|
-- Copyright (C) 2003 Jean-Louis Bergamo <jlb@j1b.org>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- Id: llx_const.sql,v 1.8 2007/12/02 22:03:23 eldy Exp
|
||||||
-- $Source$
|
-- ===========================================================================
|
||||||
--
|
|
||||||
-- ===========================================================================
|
--
|
||||||
--
|
-- Definitions des constantes utilis<69>s comme parametres de configuration
|
||||||
-- Definitions des constantes utilis<69>s comme parametres de configuration
|
--
|
||||||
--
|
|
||||||
|
|
||||||
|
create table llx_const
|
||||||
create table llx_const
|
(
|
||||||
(
|
rowid SERIAL PRIMARY KEY,
|
||||||
rowid SERIAL PRIMARY KEY,
|
"name" varchar(255),
|
||||||
"name" varchar(255),
|
"value" text, -- max 65535 caracteres
|
||||||
"value" text, -- max 65535 caracteres
|
"type" varchar(6) CHECK (type IN ('yesno','texte','chaine')) ,
|
||||||
"type" varchar(6) CHECK (type IN ('yesno','texte','chaine')) ,
|
"visible" smallint DEFAULT 1 NOT NULL,
|
||||||
"visible" smallint DEFAULT 1 NOT NULL,
|
"note" text,
|
||||||
"note" text,
|
UNIQUE(name)
|
||||||
UNIQUE(name)
|
);
|
||||||
);
|
|
||||||
|
CREATE INDEX idx_llx_const_name ON llx_const (name);
|
||||||
CREATE INDEX idx_llx_const_name ON llx_const (name);
|
|
||||||
|
|||||||
@@ -1,38 +1,36 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ============================================================================
|
-- ============================================================================
|
||||||
-- Copyright (C) 2002-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
-- Copyright (C) 2002-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
-- Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
-- Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- Id: llx_contrat.key.sql,v 1.11 2007/12/02 22:03:23 eldy Exp
|
||||||
-- $Source$
|
-- ============================================================================
|
||||||
--
|
|
||||||
-- ============================================================================
|
|
||||||
|
-- Supprimme orhpelins pour permettre mont<6E>e de la cl<63>
|
||||||
|
-- V4 DELETE llx_contratdet FROM llx_contratdet, llx_contrat LEFT JOIN llx_societe ON llx_contrat.fk_soc = llx_societe.rowid WHERE llx_contratdet.fk_contrat = llx_contrat.rowid AND llx_societe.rowid IS NULL;
|
||||||
-- Supprimme orhpelins pour permettre mont<6E>e de la cl<63>
|
-- V4 DELETE llx_contrat FROM llx_contrat LEFT JOIN llx_societe ON llx_contrat.fk_soc = llx_societe.rowid WHERE llx_societe.rowid IS NULL;
|
||||||
-- V4 DELETE llx_contratdet FROM llx_contratdet, llx_contrat LEFT JOIN llx_societe ON llx_contrat.fk_soc = llx_societe.rowid WHERE llx_contratdet.fk_contrat = llx_contrat.rowid AND llx_societe.rowid IS NULL;
|
-- V4 DELETE llx_contrat FROM llx_contrat LEFT JOIN llx_user ON llx_contrat.fk_user_author = llx_user.rowid WHERE llx_user.rowid IS NULL;
|
||||||
-- V4 DELETE llx_contrat FROM llx_contrat LEFT JOIN llx_societe ON llx_contrat.fk_soc = llx_societe.rowid WHERE llx_societe.rowid IS NULL;
|
|
||||||
-- V4 DELETE llx_contrat FROM llx_contrat LEFT JOIN llx_user ON llx_contrat.fk_user_author = llx_user.rowid WHERE llx_user.rowid IS NULL;
|
ALTER TABLE llx_contrat ADD INDEX idx_contrat_fk_soc (fk_soc);
|
||||||
|
ALTER TABLE llx_contrat ADD INDEX idx_contrat_fk_user_author (fk_user_author);
|
||||||
ALTER TABLE llx_contrat ADD INDEX idx_contrat_fk_soc (fk_soc);
|
|
||||||
ALTER TABLE llx_contrat ADD INDEX idx_contrat_fk_user_author (fk_user_author);
|
ALTER TABLE llx_contrat ADD CONSTRAINT fk_contrat_fk_soc FOREIGN KEY (fk_soc) REFERENCES llx_societe (rowid);
|
||||||
|
|
||||||
ALTER TABLE llx_contrat ADD CONSTRAINT fk_contrat_fk_soc FOREIGN KEY (fk_soc) REFERENCES llx_societe (rowid);
|
|
||||||
ALTER TABLE llx_contrat ADD CONSTRAINT fk_contrat_user_author FOREIGN KEY (fk_user_author) REFERENCES llx_user (rowid);
|
ALTER TABLE llx_contrat ADD CONSTRAINT fk_contrat_user_author FOREIGN KEY (fk_user_author) REFERENCES llx_user (rowid);
|
||||||
@@ -1,49 +1,47 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ============================================================================
|
-- ============================================================================
|
||||||
-- Copyright (C) 2002-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
-- Copyright (C) 2002-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
-- Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
-- Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- Id: llx_contrat.sql,v 1.13 2007/12/02 22:03:23 eldy Exp
|
||||||
-- $Source$
|
-- ============================================================================
|
||||||
--
|
|
||||||
-- ============================================================================
|
create table llx_contrat
|
||||||
|
(
|
||||||
create table llx_contrat
|
rowid SERIAL PRIMARY KEY,
|
||||||
(
|
"ref" varchar(30), -- reference de contrat
|
||||||
rowid SERIAL PRIMARY KEY,
|
"tms" timestamp,
|
||||||
"ref" varchar(30), -- reference de contrat
|
"datec" timestamp, -- date de creation de l'enregistrement
|
||||||
"tms" timestamp,
|
"date_contrat" timestamp,
|
||||||
"datec" timestamp, -- date de creation de l'enregistrement
|
"statut" smallint DEFAULT 0,
|
||||||
"date_contrat" timestamp,
|
"mise_en_service" timestamp,
|
||||||
"statut" smallint DEFAULT 0,
|
"fin_validite" timestamp,
|
||||||
"mise_en_service" timestamp,
|
"date_cloture" timestamp,
|
||||||
"fin_validite" timestamp,
|
"fk_soc" integer NOT NULL,
|
||||||
"date_cloture" timestamp,
|
"fk_projet" integer,
|
||||||
"fk_soc" integer NOT NULL,
|
"fk_commercial_signature" integer NOT NULL, -- obsolete
|
||||||
"fk_projet" integer,
|
"fk_commercial_suivi" integer NOT NULL, -- obsolete
|
||||||
"fk_commercial_signature" integer NOT NULL, -- obsolete
|
"fk_user_author" integer NOT NULL default 0,
|
||||||
"fk_commercial_suivi" integer NOT NULL, -- obsolete
|
"fk_user_mise_en_service" integer,
|
||||||
"fk_user_author" integer NOT NULL default 0,
|
"fk_user_cloture" integer,
|
||||||
"fk_user_mise_en_service" integer,
|
"note" text,
|
||||||
"fk_user_cloture" integer,
|
"note_public" text
|
||||||
"note" text,
|
);
|
||||||
"note_public" text
|
|
||||||
);
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,36 +1,34 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ============================================================================
|
-- ============================================================================
|
||||||
-- Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
-- Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
-- Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
-- Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- Id: llx_contratdet.key.sql,v 1.6 2007/12/02 22:03:23 eldy Exp
|
||||||
-- $Source$
|
-- ============================================================================
|
||||||
--
|
|
||||||
-- ============================================================================
|
|
||||||
|
ALTER TABLE llx_contratdet ADD INDEX idx_contratdet_fk_contrat (fk_contrat);
|
||||||
|
ALTER TABLE llx_contratdet ADD INDEX idx_contratdet_fk_product (fk_product);
|
||||||
ALTER TABLE llx_contratdet ADD INDEX idx_contratdet_fk_contrat (fk_contrat);
|
ALTER TABLE llx_contratdet ADD INDEX idx_contratdet_date_ouverture_prevue (date_ouverture_prevue);
|
||||||
ALTER TABLE llx_contratdet ADD INDEX idx_contratdet_fk_product (fk_product);
|
ALTER TABLE llx_contratdet ADD INDEX idx_contratdet_date_ouverture (date_ouverture);
|
||||||
ALTER TABLE llx_contratdet ADD INDEX idx_contratdet_date_ouverture_prevue (date_ouverture_prevue);
|
ALTER TABLE llx_contratdet ADD INDEX idx_contratdet_date_fin_validite (date_fin_validite);
|
||||||
ALTER TABLE llx_contratdet ADD INDEX idx_contratdet_date_ouverture (date_ouverture);
|
|
||||||
ALTER TABLE llx_contratdet ADD INDEX idx_contratdet_date_fin_validite (date_fin_validite);
|
ALTER TABLE llx_contratdet ADD CONSTRAINT fk_contratdet_fk_contrat FOREIGN KEY (fk_contrat) REFERENCES llx_contrat (rowid);
|
||||||
|
ALTER TABLE llx_contratdet ADD CONSTRAINT fk_contratdet_fk_product FOREIGN KEY (fk_product) REFERENCES llx_product (rowid);
|
||||||
ALTER TABLE llx_contratdet ADD CONSTRAINT fk_contratdet_fk_contrat FOREIGN KEY (fk_contrat) REFERENCES llx_contrat (rowid);
|
|
||||||
ALTER TABLE llx_contratdet ADD CONSTRAINT fk_contratdet_fk_product FOREIGN KEY (fk_product) REFERENCES llx_product (rowid);
|
|
||||||
|
|||||||
@@ -1,63 +1,61 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ============================================================================
|
-- ============================================================================
|
||||||
-- Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
-- Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- Id: llx_contratdet.sql,v 1.9 2007/12/02 22:03:23 eldy Exp
|
||||||
-- $Source$
|
-- ============================================================================
|
||||||
--
|
|
||||||
-- ============================================================================
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
create table llx_contratdet
|
||||||
|
(
|
||||||
create table llx_contratdet
|
rowid SERIAL PRIMARY KEY,
|
||||||
(
|
"tms" timestamp,
|
||||||
rowid SERIAL PRIMARY KEY,
|
"fk_contrat" integer NOT NULL,
|
||||||
"tms" timestamp,
|
"fk_product" integer NULL, -- doit pouvoir etre nul pour ligne detail sans produits
|
||||||
"fk_contrat" integer NOT NULL,
|
"statut" smallint DEFAULT 0,
|
||||||
"fk_product" integer NULL, -- doit pouvoir etre nul pour ligne detail sans produits
|
"label" text, -- libell<6C> du produit
|
||||||
"statut" smallint DEFAULT 0,
|
"description" text,
|
||||||
"label" text, -- libell<6C> du produit
|
"fk_remise_except" integer NULL, -- Lien vers table des remises fixes
|
||||||
"description" text,
|
"date_commande" timestamp,
|
||||||
"fk_remise_except" integer NULL, -- Lien vers table des remises fixes
|
"date_ouverture_prevue" timestamp,
|
||||||
"date_commande" timestamp,
|
"date_ouverture" timestamp, -- date d'ouverture du service chez le client
|
||||||
"date_ouverture_prevue" timestamp,
|
"date_fin_validite" timestamp,
|
||||||
"date_ouverture" timestamp, -- date d'ouverture du service chez le client
|
"date_cloture" timestamp,
|
||||||
"date_fin_validite" timestamp,
|
"tva_tx" real(6,3) DEFAULT 0, -- taux tva
|
||||||
"date_cloture" timestamp,
|
"qty" real NOT NULL, -- quantit<69>
|
||||||
"tva_tx" real(6,3) DEFAULT 0 NOT NULL, -- taux tva
|
"remise_percent" real DEFAULT 0, -- pourcentage de remise
|
||||||
"qty" real NOT NULL, -- quantit<EFBFBD>
|
"subprice" real(24,8) DEFAULT 0, -- prix unitaire
|
||||||
"remise_percent" real DEFAULT 0, -- pourcentage de remise
|
"price_ht" real, -- prix final (obsolete)
|
||||||
"subprice" real(16,8), -- prix unitaire
|
"remise" real DEFAULT 0, -- montant de la remise (obsolete)
|
||||||
"price_ht" real, -- prix final (obsolete)
|
"total_ht" real(24,8) DEFAULT 0, -- Total HT de la ligne toute quantit<69> et incluant remise ligne et globale
|
||||||
"remise" real DEFAULT 0, -- montant de la remise (obsolete)
|
"total_tva" real(24,8) DEFAULT 0, -- Total TVA de la ligne toute quantit<69> et incluant remise ligne et globale
|
||||||
"total_ht" real(16,8) NOT NULL, -- Total HT de la ligne toute quantit<69> et incluant remise ligne et globale
|
"total_ttc" real(24,8) DEFAULT 0, -- Total TTC de la ligne toute quantit<69> et incluant remise ligne et globale
|
||||||
"total_tva" real(16,8) NOT NULL, -- Total TVA de la ligne toute quantit<69> et incluant remise ligne et globale
|
"info_bits" integer DEFAULT 0, -- TVA NPR ou non
|
||||||
"total_ttc" real(16,8) NOT NULL, -- Total TTC de la ligne toute quantit<69> et incluant remise ligne et globale
|
"fk_user_author" integer NOT NULL DEFAULT 0,
|
||||||
"info_bits" integer DEFAULT 0, -- TVA NPR ou non
|
"fk_user_ouverture" integer,
|
||||||
"fk_user_author" integer NOT NULL default 0,
|
"fk_user_cloture" integer,
|
||||||
"fk_user_ouverture" integer,
|
"commentaire" text
|
||||||
"fk_user_cloture" integer,
|
);
|
||||||
"commentaire" text
|
|
||||||
);
|
|
||||||
|
|||||||
@@ -1,30 +1,28 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ============================================================================
|
-- ============================================================================
|
||||||
-- Copyright (C) 2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
-- Copyright (C) 2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- $Id: llx_contratdet_log.key.sql,v 1.1 2006/08/16 22:28:09 eldy Exp $
|
-- Id: llx_contratdet_log.key.sql,v 1.2 2007/12/02 22:03:23 eldy Exp
|
||||||
-- $Source: /cvsroot/dolibarr/dolibarr/mysql/tables/llx_contratdet_log.key.sql,v $
|
-- ============================================================================
|
||||||
--
|
|
||||||
-- ============================================================================
|
ALTER TABLE llx_contratdet_log ADD INDEX idx_contratdet_log_fk_contratdet (fk_contratdet);
|
||||||
|
ALTER TABLE llx_contratdet_log ADD INDEX idx_contratdet_log_date (date);
|
||||||
ALTER TABLE llx_contratdet_log ADD INDEX idx_contratdet_log_fk_contratdet (fk_contratdet);
|
|
||||||
ALTER TABLE llx_contratdet_log ADD INDEX idx_contratdet_log_date (date);
|
ALTER TABLE llx_contratdet_log ADD CONSTRAINT fk_contratdet_log_fk_contratdet FOREIGN KEY (fk_contratdet) REFERENCES llx_contratdet (rowid);
|
||||||
|
|
||||||
ALTER TABLE llx_contratdet_log ADD CONSTRAINT fk_contratdet_log_fk_contratdet FOREIGN KEY (fk_contratdet) REFERENCES llx_contratdet (rowid);
|
|
||||||
|
|||||||
@@ -1,37 +1,35 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ============================================================================
|
-- ============================================================================
|
||||||
-- Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
-- Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- Id: llx_contratdet_log.sql,v 1.3 2007/12/02 22:03:23 eldy Exp
|
||||||
-- $Source$
|
-- ============================================================================
|
||||||
--
|
|
||||||
-- ============================================================================
|
|
||||||
|
create table llx_contratdet_log
|
||||||
|
(
|
||||||
create table llx_contratdet_log
|
rowid SERIAL PRIMARY KEY,
|
||||||
(
|
"tms" timestamp,
|
||||||
rowid SERIAL PRIMARY KEY,
|
"fk_contratdet" integer NOT NULL,
|
||||||
"tms" timestamp,
|
"date" timestamp,
|
||||||
"fk_contratdet" integer NOT NULL,
|
"statut" smallint NOT NULL,
|
||||||
"date" timestamp,
|
"fk_user_author" integer NOT NULL,
|
||||||
"statut" smallint NOT NULL,
|
"commentaire" text
|
||||||
"fk_user_author" integer NOT NULL,
|
);
|
||||||
"commentaire" text
|
|
||||||
);
|
|
||||||
|
|||||||
@@ -1,27 +1,25 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ============================================================================
|
-- ============================================================================
|
||||||
-- Copyright (C) 2007 Laurent Destailleur <eldy@users.sourceforge.net>
|
-- Copyright (C) 2007 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- $Id: llx_cotisation.key.sql,v 1.2 2007/04/28 14:05:49 eldy Exp $
|
-- Id: llx_cotisation.key.sql,v 1.3 2007/12/02 22:03:23 eldy Exp
|
||||||
-- $Source: /cvsroot/dolibarr/dolibarr/mysql/tables/llx_cotisation.key.sql,v $
|
-- ============================================================================
|
||||||
--
|
|
||||||
-- ============================================================================
|
ALTER TABLE llx_cotisation ADD UNIQUE INDEX uk_cotisation (fk_adherent,dateadh);
|
||||||
|
|
||||||
ALTER TABLE llx_cotisation ADD UNIQUE INDEX uk_cotisation (fk_adherent,dateadh);
|
|
||||||
|
|||||||
@@ -1,36 +1,36 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ===================================================================
|
-- ===================================================================
|
||||||
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- Id: llx_cotisation.sql,v 1.9 2007/12/02 22:03:23 eldy Exp
|
||||||
-- $Source$
|
-- ===================================================================
|
||||||
-- ===================================================================
|
|
||||||
|
create table llx_cotisation
|
||||||
create table llx_cotisation
|
(
|
||||||
(
|
rowid SERIAL PRIMARY KEY,
|
||||||
rowid SERIAL PRIMARY KEY,
|
"tms" timestamp,
|
||||||
"tms" timestamp,
|
"datec" timestamp,
|
||||||
"datec" timestamp,
|
"fk_adherent" integer,
|
||||||
"fk_adherent" integer,
|
"dateadh" timestamp,
|
||||||
"dateadh" timestamp,
|
"datef" date,
|
||||||
"cotisation" real,
|
"cotisation" real,
|
||||||
"fk_bank" int4 DEFAULT NULL,
|
"fk_bank" int4 DEFAULT NULL,
|
||||||
"note" text
|
"note" text
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,39 +1,37 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ============================================================================
|
-- ============================================================================
|
||||||
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- Id: llx_deplacement.sql,v 1.4 2007/12/02 22:00:08 eldy Exp
|
||||||
-- $Source$
|
-- ============================================================================
|
||||||
--
|
|
||||||
-- ============================================================================
|
create table llx_deplacement
|
||||||
|
(
|
||||||
create table llx_deplacement
|
rowid SERIAL PRIMARY KEY,
|
||||||
(
|
"datec" timestamp,
|
||||||
rowid SERIAL PRIMARY KEY,
|
"tms" timestamp,
|
||||||
"datec" timestamp,
|
"dated" timestamp,
|
||||||
"tms" timestamp,
|
"fk_user" integer NOT NULL,
|
||||||
"dated" timestamp,
|
"fk_user_author" integer,
|
||||||
"fk_user" integer NOT NULL,
|
"type" smallint NOT NULL,
|
||||||
"fk_user_author" integer,
|
"km" smallint,
|
||||||
"type" smallint NOT NULL,
|
"fk_soc" integer,
|
||||||
"km" smallint,
|
"note" text
|
||||||
"fk_soc" integer,
|
);
|
||||||
"note" text
|
|
||||||
);
|
|
||||||
|
|||||||
@@ -1,37 +1,36 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ===================================================================
|
-- ===================================================================
|
||||||
-- Copyright (C) 2007 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
-- Copyright (C) 2007 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- $Id: llx_document.sql,v 1.2 2007/04/13 15:29:02 rodolphe Exp $
|
-- Id: llx_document.sql,v 1.3 2007/12/02 22:00:08 eldy Exp
|
||||||
-- $Source: /cvsroot/dolibarr/dolibarr/mysql/tables/llx_document.sql,v $
|
-- ===================================================================
|
||||||
-- ===================================================================
|
|
||||||
|
|
||||||
|
create table llx_document
|
||||||
create table llx_document
|
(
|
||||||
(
|
rowid SERIAL PRIMARY KEY,
|
||||||
rowid SERIAL PRIMARY KEY,
|
"name" varchar(255) NOT NULL,
|
||||||
"name" varchar(255) NOT NULL,
|
"file_name" varchar(255) NOT NULL,
|
||||||
"file_name" varchar(255) NOT NULL,
|
"file_extension" varchar(5) NOT NULL,
|
||||||
"file_extension" varchar(5) NOT NULL,
|
"date_generation" timestamp NULL,
|
||||||
"date_generation" timestamp NULL,
|
"fk_owner" integer NULL,
|
||||||
"fk_owner" integer NULL,
|
"fk_group" integer NULL,
|
||||||
"fk_group" integer NULL,
|
"permissions" varchar(9) DEFAULT 'rw-rw-rw'
|
||||||
"permissions" varchar(9) DEFAULT 'rw-rw-rw'
|
);
|
||||||
);
|
|
||||||
|
|||||||
@@ -1,33 +1,32 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ===================================================================
|
-- ===================================================================
|
||||||
-- Copyright (C) 2007 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
-- Copyright (C) 2007 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- $Id: llx_document_generator.sql,v 1.2 2007/04/13 12:23:08 rodolphe Exp $
|
-- Id: llx_document_generator.sql,v 1.3 2007/12/02 22:00:08 eldy Exp
|
||||||
-- $Source: /cvsroot/dolibarr/dolibarr/mysql/tables/llx_document_generator.sql,v $
|
-- ===================================================================
|
||||||
-- ===================================================================
|
|
||||||
|
|
||||||
|
create table llx_document_generator
|
||||||
create table llx_document_generator
|
(
|
||||||
(
|
rowid integer NOT NULL PRIMARY KEY,
|
||||||
rowid integer NOT NULL PRIMARY KEY,
|
"name" varchar(255) NOT NULL,
|
||||||
"name" varchar(255) NOT NULL,
|
"classfile" varchar(255) NOT NULL,
|
||||||
"classfile" varchar(255) NOT NULL,
|
"class" varchar(255) NOT NULL
|
||||||
"class" varchar(255) NOT NULL
|
);
|
||||||
);
|
|
||||||
|
|||||||
@@ -1,28 +1,26 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ===================================================================
|
-- ===================================================================
|
||||||
-- Copyright (C) 2007 Laurent Destailleur <eldy@users.sourceforge.net>
|
-- Copyright (C) 2007 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- $Id: llx_document_model.key.sql,v 1.1 2007/01/03 22:10:23 eldy Exp $
|
-- Id: llx_document_model.key.sql,v 1.2 2007/12/02 22:00:08 eldy Exp
|
||||||
-- $Source: /cvsroot/dolibarr/dolibarr/mysql/tables/llx_document_model.key.sql,v $
|
-- ===================================================================
|
||||||
--
|
|
||||||
-- ===================================================================
|
|
||||||
|
ALTER TABLE llx_document_model ADD UNIQUE uk_document_model (nom,type);
|
||||||
|
|
||||||
ALTER TABLE llx_document_model ADD UNIQUE uk_document_model (nom,type);
|
|
||||||
|
|||||||
@@ -1,37 +1,35 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ===================================================================
|
-- ===================================================================
|
||||||
-- Copyright (C) 2001-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
-- Copyright (C) 2001-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
-- Copyright (C) 2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
-- Copyright (C) 2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- Id: llx_document_model.sql,v 1.7 2007/12/02 22:00:08 eldy Exp
|
||||||
-- $Source$
|
--
|
||||||
--
|
-- Liste des modeles de document disponibles
|
||||||
-- Liste des modeles de document disponibles
|
-- ===================================================================
|
||||||
--
|
|
||||||
-- ===================================================================
|
create table llx_document_model
|
||||||
|
(
|
||||||
create table llx_document_model
|
rowid SERIAL PRIMARY KEY,
|
||||||
(
|
"nom" varchar(50),
|
||||||
rowid SERIAL PRIMARY KEY,
|
"type" varchar(20) NOT NULL,
|
||||||
"nom" varchar(50),
|
"libelle" varchar(255),
|
||||||
"type" varchar(20) NOT NULL,
|
"description" text
|
||||||
"libelle" varchar(255),
|
|
||||||
"description" text
|
|
||||||
);
|
);
|
||||||
@@ -1,36 +1,34 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ========================================================================
|
-- ========================================================================
|
||||||
-- Copyright (C) 2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
-- Copyright (C) 2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- Id: llx_dolibarr_modules.sql,v 1.3 2007/12/02 22:00:08 eldy Exp
|
||||||
-- $Source$
|
-- ========================================================================
|
||||||
--
|
|
||||||
-- ========================================================================
|
|
||||||
|
create table llx_dolibarr_modules
|
||||||
|
(
|
||||||
create table llx_dolibarr_modules
|
numero integer PRIMARY KEY,
|
||||||
(
|
"active" smallint DEFAULT 0 NOT NULL,
|
||||||
numero integer PRIMARY KEY,
|
"active_date" timestamp NOT NULL,
|
||||||
"active" smallint DEFAULT 0 NOT NULL,
|
"active_version" varchar(25) NOT NULL
|
||||||
"active_date" timestamp NOT NULL,
|
);
|
||||||
"active_version" varchar(25) NOT NULL
|
|
||||||
);
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,34 +1,32 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ===================================================================
|
-- ===================================================================
|
||||||
-- Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
-- Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- Id: llx_domain.sql,v 1.4 2007/12/02 22:00:09 eldy Exp
|
||||||
-- $Source$
|
-- ===================================================================
|
||||||
--
|
|
||||||
-- ===================================================================
|
create table llx_domain
|
||||||
|
(
|
||||||
create table llx_domain
|
rowid SERIAL PRIMARY KEY,
|
||||||
(
|
"datec" timestamp,
|
||||||
rowid SERIAL PRIMARY KEY,
|
"label" varchar(255),
|
||||||
"datec" timestamp,
|
"note" text
|
||||||
"label" varchar(255),
|
);
|
||||||
"note" text
|
|
||||||
);
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,49 +1,48 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ===================================================================
|
-- ===================================================================
|
||||||
-- Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
-- Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- Id: llx_don.sql,v 1.11 2007/12/02 22:00:09 eldy Exp
|
||||||
-- $Source$
|
-- ===================================================================
|
||||||
--
|
|
||||||
-- ===================================================================
|
|
||||||
|
create table llx_don
|
||||||
create table llx_don
|
(
|
||||||
(
|
rowid SERIAL PRIMARY KEY,
|
||||||
rowid SERIAL PRIMARY KEY,
|
"tms" timestamp,
|
||||||
"tms" timestamp,
|
"fk_statut" smallint NOT NULL DEFAULT 0,-- etat du don promesse/valid
|
||||||
"fk_statut" smallint NOT NULL DEFAULT 0,-- etat du don promesse/valid
|
"datec" timestamp, -- date de cr<63>ation de l'enregistrement
|
||||||
"datec" timestamp, -- date de cr<63>ation de l'enregistrement
|
"datedon" timestamp, -- date du don/promesse
|
||||||
"datedon" timestamp, -- date du don/promesse
|
"amount" real DEFAULT 0,
|
||||||
"amount" real DEFAULT 0,
|
"fk_paiement" integer,
|
||||||
"fk_paiement" integer,
|
"prenom" varchar(50),
|
||||||
"prenom" varchar(50),
|
"nom" varchar(50),
|
||||||
"nom" varchar(50),
|
"societe" varchar(50),
|
||||||
"societe" varchar(50),
|
"adresse" text,
|
||||||
"adresse" text,
|
"cp" varchar(30),
|
||||||
"cp" varchar(30),
|
"ville" varchar(50),
|
||||||
"ville" varchar(50),
|
"pays" varchar(50),
|
||||||
"pays" varchar(50),
|
"email" varchar(255),
|
||||||
"email" varchar(255),
|
"public" smallint DEFAULT 1 NOT NULL, -- le don est-il public (0,1)
|
||||||
"public" smallint DEFAULT 1 NOT NULL, -- le don est-il public (0,1)
|
"fk_don_projet" integer NOT NULL, -- projet auquel est fait le don
|
||||||
"fk_don_projet" integer NOT NULL, -- projet auquel est fait le don
|
"fk_user_author" integer NOT NULL,
|
||||||
"fk_user_author" integer NOT NULL,
|
"fk_user_valid" integer NOT NULL,
|
||||||
"fk_user_valid" integer NOT NULL,
|
"note" text
|
||||||
"note" text
|
);
|
||||||
);
|
|
||||||
|
|||||||
@@ -1,35 +1,33 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ===================================================================
|
-- ===================================================================
|
||||||
-- Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
-- Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- Id: llx_don_projet.sql,v 1.5 2007/12/02 22:00:09 eldy Exp
|
||||||
-- $Source$
|
-- ===================================================================
|
||||||
--
|
|
||||||
-- ===================================================================
|
create table llx_don_projet
|
||||||
|
(
|
||||||
create table llx_don_projet
|
rowid SERIAL PRIMARY KEY,
|
||||||
(
|
"tms" timestamp,
|
||||||
rowid SERIAL PRIMARY KEY,
|
"datec" timestamp,
|
||||||
"tms" timestamp,
|
"libelle" varchar(255),
|
||||||
"datec" timestamp,
|
"fk_user_author" integer NOT NULL,
|
||||||
"libelle" varchar(255),
|
"note" text
|
||||||
"fk_user_author" integer NOT NULL,
|
);
|
||||||
"note" text
|
|
||||||
);
|
|
||||||
|
|||||||
@@ -1,37 +1,35 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ========================================================================
|
-- ========================================================================
|
||||||
-- Copyright (C) 2007 Patrick Raguin <patrick.raguin@gmail.com>
|
-- Copyright (C) 2007 Patrick Raguin <patrick.raguin@gmail.com>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- the Free Software Foundation; either version 2 of the License, or
|
||||||
-- (at your option) any later version.
|
-- (at your option) any later version.
|
||||||
--
|
--
|
||||||
-- This program is distributed in the hope that it will be useful,
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
-- GNU General Public License for more details.
|
-- GNU General Public License for more details.
|
||||||
--
|
--
|
||||||
-- You should have received a copy of the GNU General Public License
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
-- $Id: llx_droitpret_rapport.sql,v 1.2 2007/02/27 09:40:31 patrickrgn Exp $
|
-- Id: llx_droitpret_rapport.sql,v 1.2 2007/02/27 09:40:31 patrickrgn Exp
|
||||||
-- $Source: /sources/dolibarr/dolibarr/mysql/tables/llx_droitpret_rapport.sql,v $
|
-- ========================================================================
|
||||||
--
|
|
||||||
-- ========================================================================
|
|
||||||
|
CREATE TABLE `llx_droitpret_rapport` (
|
||||||
|
`rowid` int(11) NOT NULL auto_increment,
|
||||||
CREATE TABLE `llx_droitpret_rapport` (
|
`date_envoie` datetime NOT NULL,
|
||||||
`rowid` int(11) NOT NULL auto_increment,
|
`format` varchar(10) NOT NULL,
|
||||||
`date_envoie` datetime NOT NULL,
|
`date_debut` datetime NOT NULL,
|
||||||
`format` varchar(10) NOT NULL,
|
`date_fin` datetime NOT NULL,
|
||||||
`date_debut` datetime NOT NULL,
|
`fichier` varchar(255) NOT NULL,
|
||||||
`date_fin` datetime NOT NULL,
|
`nbfact` int(11) NOT NULL,
|
||||||
`fichier` varchar(255) NOT NULL,
|
PRIMARY KEY (`rowid`)
|
||||||
`nbfact` int(11) NOT NULL,
|
) type=innodb;
|
||||||
PRIMARY KEY (`rowid`)
|
|
||||||
) type=innodb;
|
|
||||||
|
|||||||
@@ -1,33 +1,37 @@
|
|||||||
-- Generated from dolibarr_mysql2pgsql
|
-- Generated by dolibarr_mysql2pgsql
|
||||||
-- (c) 2004, PostgreSQL Inc.
|
-- (c) 2004, PostgreSQL Inc.
|
||||||
-- (c) 2005, Laurent Destailleur.
|
-- (c) 2005, Laurent Destailleur.
|
||||||
|
|
||||||
-- ============================================================================
|
-- ============================================================================
|
||||||
-- Copyright (C) 2005 patrick Rouillon <patrick@rouillon.net>
|
-- Copyright (C) 2005 patrick Rouillon <patrick@rouillon.net>
|
||||||
--
|
-- Copyright (C) 2007 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
-- 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
|
-- This program is free software; you can redistribute it and/or modify
|
||||||
-- the Free Software Foundation; either version 2 of the License, or
|
-- it under the terms of the GNU General Public License as published by
|
||||||
-- (at your option) any later version.
|
-- 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
|
-- This program is distributed in the hope that it will be useful,
|
||||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
-- GNU General Public License for more details.
|
-- 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
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- along with this program; if not, write to the Free Software
|
||||||
--
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
-- $Id$
|
--
|
||||||
-- $Source$
|
-- Id: llx_element_contact.key.sql,v 1.6 2007/12/02 21:58:49 eldy Exp
|
||||||
--
|
-- ============================================================================
|
||||||
-- ============================================================================
|
|
||||||
|
|
||||||
|
ALTER TABLE llx_element_contact
|
||||||
ALTER TABLE llx_element_contact
|
ADD UNIQUE INDEX idx_element_contact_idx1 (element_id, fk_c_type_contact, fk_socpeople);
|
||||||
ADD UNIQUE INDEX idx_element_contact_idx1 (element_id, fk_c_type_contact, fk_socpeople);
|
|
||||||
|
ALTER TABLE llx_element_contact
|
||||||
ALTER TABLE llx_element_contact
|
ADD CONSTRAINT fk_element_contact_fk_c_type_contact
|
||||||
ADD CONSTRAINT fk_element_contact_fk_c_type_contact
|
FOREIGN KEY (fk_c_type_contact) REFERENCES llx_c_type_contact(rowid);
|
||||||
FOREIGN KEY (fk_c_type_contact) REFERENCES llx_c_type_contact(rowid);
|
|
||||||
|
|
||||||
|
ALTER TABLE llx_element_contact ADD INDEX idx_element_contact_fk_socpeople (fk_socpeople);
|
||||||
|
-- Pas de contraite sur fk_socpeople car point sur llx_socpeople mais aussi llx_user
|
||||||
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user