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

mise à jour des tables Postgresql avec le script de migration

parent 0a86de88
No related branches found
No related tags found
No related merge requests found
...@@ -32,5 +32,5 @@ create table llx_bank_url ...@@ -32,5 +32,5 @@ create table llx_bank_url
"url_id" integer, "url_id" integer,
"url" varchar(255), "url" varchar(255),
"label" varchar(255), "label" varchar(255),
"type" enum("?","company","payment","payment_supplier","member","subscription","donation","sc","payment_sc") NOT NULL "type" varchar(16) CHECK (type IN ('?','company','payment','payment_supplier','member','subscription','donation','sc','payment_sc')) NOT NULL
); );
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
-- =================================================================== -- ===================================================================
-- Copyright (C) 2006 Rodolphe Quiedeville <rodolphe@quiedeville.org> -- Copyright (C) 2006 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- --
-- $Id: llx_bordereau_cheque.sql,v 1.3 2006/12/22 14:38:16 rodolphe Exp $ -- $Id: llx_bordereau_cheque.sql,v 1.4 2007/08/26 19:21:40 eldy Exp $
-- $Source: /cvsroot/dolibarr/dolibarr/mysql/tables/llx_bordereau_cheque.sql,v $ -- $Source: /cvsroot/dolibarr/dolibarr/mysql/tables/llx_bordereau_cheque.sql,v $
-- --
-- This program is free software; you can redistribute it and/or modify -- This program is free software; you can redistribute it and/or modify
...@@ -31,7 +31,7 @@ create table llx_bordereau_cheque ...@@ -31,7 +31,7 @@ create table llx_bordereau_cheque
rowid SERIAL PRIMARY KEY, rowid SERIAL PRIMARY KEY,
"datec" timestamp, "datec" timestamp,
"date_bordereau" date, "date_bordereau" date,
"number" mediumint ZEROFILL, "number" integer,
"amount" float(12,2), "amount" float(12,2),
"nbcheque" smallint DEFAULT 0, "nbcheque" smallint DEFAULT 0,
"fk_bank_account" integer, "fk_bank_account" integer,
......
...@@ -46,5 +46,5 @@ create table llx_facturedet ...@@ -46,5 +46,5 @@ create table llx_facturedet
"fk_code_ventilation" integer DEFAULT 0 NOT NULL, "fk_code_ventilation" integer DEFAULT 0 NOT NULL,
"fk_export_compta" integer DEFAULT 0 NOT NULL, "fk_export_compta" integer DEFAULT 0 NOT NULL,
"rang" integer DEFAULT 0, -- ordre d'affichage "rang" integer DEFAULT 0, -- ordre d'affichage
"special_code" smallint unsiDEFAULT 0, -- code pour les lignes speciales (livraison=1, ecotaxe=2) "special_code" int2 DEFAULT 0 -- code pour les lignes speciales (livraison=1, ecotaxe=2)
); );
...@@ -35,14 +35,15 @@ create table llx_fichinter ...@@ -35,14 +35,15 @@ create table llx_fichinter
"tms" timestamp, "tms" timestamp,
"datec" timestamp, -- date de creation "datec" timestamp, -- date de creation
"date_valid" timestamp, -- date de validation "date_valid" timestamp, -- date de validation
"datei" date, -- date de l'intervention "datei" date, -- date de livraison du bon d'intervention
"fk_user_author" integer, -- createur de la fiche "fk_user_author" integer, -- createur de la fiche
"fk_user_valid" integer, -- valideur de la fiche "fk_user_valid" integer, -- valideur de la fiche
"fk_statut" smallint DEFAULT 0, "fk_statut" smallint DEFAULT 0,
"duree" real, "duree" real, -- dure totale de l'intervention
"description" text, "description" text,
"note_private" text, "note_private" text,
"note_public" text, "note_public" text,
"model_pdf" varchar(50),
UNIQUE(ref) UNIQUE(ref)
); );
......
-- Generated from dolibarr_mysql2pgsql
-- (c) 2004, PostgreSQL Inc.
-- (c) 2005, Laurent Destailleur.
-- ===================================================================
-- Copyright (C) 2002-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- Copyright (C) 2005-2007 Regis Houssin <regis.houssin@cap-networks.com>
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 2 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
--
-- $Id: llx_fichinterdet.sql,v 1.1 2007/08/28 07:46:40 hregis Exp $
-- $Source: /cvsroot/dolibarr/dolibarr/mysql/tables/llx_fichinterdet.sql,v $
-- ===================================================================
create table llx_fichinterdet
(
rowid SERIAL PRIMARY KEY,
"fk_fichinter" integer,
"date" date, -- date de la ligne d'intervention
"description" text, -- description de la ligne d'intervention
"duree" integer, -- duree de la ligne d'intervention
"rang" integer DEFAULT 0 -- ordre affichage sur la fiche
);
...@@ -2,23 +2,27 @@ ...@@ -2,23 +2,27 @@
-- (c) 2004, PostgreSQL Inc. -- (c) 2004, PostgreSQL Inc.
-- (c) 2005, Laurent Destailleur. -- (c) 2005, Laurent Destailleur.
-- phpMyAdmin SQL Dump -- ===================================================================
-- version 2.6.2-Debian-3sarge3 -- Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
-- http://www.phpmyadmin.net
-- --
-- Serveur: localhost -- This program is free software; you can redistribute it and/or modify
-- Gnr le : Mercredi 20 Juin 2007 15:13 -- it under the terms of the GNU General Public License as published by
-- Version du serveur: 4.0.24 -- the Free Software Foundation; either version 2 of the License, or
-- Version de PHP: 4.3.10-19 -- (at your option) any later version.
-- --
-- Base de donnes: `dolidev` -- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
-- --
-- You should have received a copy of the GNU General Public License
-- -------------------------------------------------------- -- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-- --
-- Structure de la table `llx_osc_categories` -- $Id: llx_osc_categories.sql,v 1.3 2007/08/26 19:21:40 eldy Exp $
-- $Source: /cvsroot/dolibarr/dolibarr/mysql/tables/llx_osc_categories.sql,v $
-- --
-- ===================================================================
CREATE TABLE llx_osc_categories ( CREATE TABLE llx_osc_categories (
rowid SERIAL PRIMARY KEY, rowid SERIAL PRIMARY KEY,
......
...@@ -19,15 +19,17 @@ ...@@ -19,15 +19,17 @@
-- 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_osc_customer.sql,v 1.2 2007/06/11 22:52:15 hregis Exp $ -- $Id: llx_osc_customer.sql,v 1.3 2007/08/26 19:21:40 eldy Exp $
-- $Source: /cvsroot/dolibarr/dolibarr/mysql/tables/llx_osc_customer.sql,v $ -- $Source: /cvsroot/dolibarr/dolibarr/mysql/tables/llx_osc_customer.sql,v $
-- --
-- =================================================================== -- ===================================================================
CREATE TABLE IF NOT EXISTS `llx_osc_customer` ( CREATE TABLE llx_osc_customer (
"`rowid`" int4 NOT NULL default '0', "rowid" int4 NOT NULL default '0',
"`datem`" timestamp default NULL, "datem" timestamp default NULL,
"`fk_soc`" int4 NOT NULL default '0', "fk_soc" int4 NOT NULL default '0',
PRIMARY KEY (`rowid`), UNIQUE(fk_soc)
"UNIQUE" UNIQUE (`fk_soc`)
) TYPE=InnoDB COMMENT='Table transition client OSC - societe Dolibarr'; ) TYPE=InnoDB COMMENT='Table transition client OSC - societe Dolibarr';
CREATE INDEX idx_llx_osc_customer_rowid ON llx_osc_customer (rowid);
CREATE INDEX fk_soc ON llx_osc_customer (fk_soc);
...@@ -19,15 +19,17 @@ ...@@ -19,15 +19,17 @@
-- 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_osc_order.sql,v 1.3 2007/06/11 22:52:15 hregis Exp $ -- $Id: llx_osc_order.sql,v 1.4 2007/08/26 19:21:40 eldy Exp $
-- $Source: /cvsroot/dolibarr/dolibarr/mysql/tables/llx_osc_order.sql,v $ -- $Source: /cvsroot/dolibarr/dolibarr/mysql/tables/llx_osc_order.sql,v $
-- --
-- =================================================================== -- ===================================================================
CREATE TABLE IF NOT EXISTS `llx_osc_order` ( CREATE TABLE llx_osc_order (
"`rowid`" int4 NOT NULL default '0', "rowid" int4 NOT NULL default '0',
"`datem`" timestamp default NULL, "datem" timestamp default NULL,
"`fk_commande`" int4 NOT NULL default '0', "fk_commande" int4 NOT NULL default '0',
PRIMARY KEY (`rowid`), UNIQUE(fk_commande)
"UNIQUE" UNIQUE (`fk_commande`)
) TYPE=InnoDB COMMENT='Table transition commande OSC - commande Dolibarr'; ) TYPE=InnoDB COMMENT='Table transition commande OSC - commande Dolibarr';
CREATE INDEX idx_llx_osc_order_rowid ON llx_osc_order (rowid);
CREATE INDEX fk_commande ON llx_osc_order (fk_commande);
...@@ -19,17 +19,19 @@ ...@@ -19,17 +19,19 @@
-- 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_osc_product.sql,v 1.3 2007/06/11 22:52:15 hregis Exp $ -- $Id: llx_osc_product.sql,v 1.4 2007/08/26 19:21:41 eldy Exp $
-- $Source: /cvsroot/dolibarr/dolibarr/mysql/tables/llx_osc_product.sql,v $ -- $Source: /cvsroot/dolibarr/dolibarr/mysql/tables/llx_osc_product.sql,v $
-- --
-- =================================================================== -- ===================================================================
CREATE TABLE IF NOT EXISTS `llx_osc_product` ( CREATE TABLE llx_osc_product (
"`rowid`" int4 NOT NULL default '0', "rowid" int4 NOT NULL default '0',
"`datem`" timestamp default NULL, "datem" timestamp default NULL,
"`fk_product`" int4 NOT NULL default '0', "fk_product" int4 NOT NULL default '0',
PRIMARY KEY (`rowid`), UNIQUE(fk_product)
"UNIQUE" UNIQUE (`fk_product`)
) TYPE=InnoDB COMMENT='Table transition produit OSC - produit Dolibarr'; ) TYPE=InnoDB COMMENT='Table transition produit OSC - produit Dolibarr';
CREATE INDEX idx_llx_osc_product_rowid ON llx_osc_product (rowid);
CREATE INDEX fk_product ON llx_osc_product (fk_product);
...@@ -22,8 +22,7 @@ ...@@ -22,8 +22,7 @@
-- $Id$ -- $Id$
-- $Source$ -- $Source$
-- --
-- Historique des remises clients -- Historique evolution de la remise relative des tiers
--
-- ======================================================================== -- ========================================================================
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment