2
0
forked from Wavyzz/dolibarr

mise jour des tables Postgresql avec le script de migration

This commit is contained in:
Regis Houssin
2007-09-01 15:03:38 +00:00
parent 0a86de886d
commit 9b891ca98f
10 changed files with 92 additions and 47 deletions

View File

@@ -32,5 +32,5 @@ create table llx_bank_url
"url_id" integer,
"url" 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
);

View File

@@ -5,7 +5,7 @@
-- ===================================================================
-- 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 $
--
-- This program is free software; you can redistribute it and/or modify
@@ -31,7 +31,7 @@ create table llx_bordereau_cheque
rowid SERIAL PRIMARY KEY,
"datec" timestamp,
"date_bordereau" date,
"number" mediumint ZEROFILL,
"number" integer,
"amount" float(12,2),
"nbcheque" smallint DEFAULT 0,
"fk_bank_account" integer,

View File

@@ -45,6 +45,6 @@ create table llx_facturedet
"info_bits" integer DEFAULT 0, -- TVA NPR ou non
"fk_code_ventilation" integer DEFAULT 0 NOT NULL,
"fk_export_compta" integer DEFAULT 0 NOT NULL,
"rang" integer DEFAULT 0, -- ordre d'affichage
"special_code" smallint unsiDEFAULT 0, -- code pour les lignes speciales (livraison=1, ecotaxe=2)
"rang" integer DEFAULT 0, -- ordre d'affichage
"special_code" int2 DEFAULT 0 -- code pour les lignes speciales (livraison=1, ecotaxe=2)
);

View File

@@ -35,14 +35,15 @@ create table llx_fichinter
"tms" timestamp,
"datec" timestamp, -- date de creation
"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_valid" integer, -- valideur de la fiche
"fk_statut" smallint DEFAULT 0,
"duree" real,
"duree" real, -- dur<75>e totale de l'intervention
"description" text,
"note_private" text,
"note_public" text,
"model_pdf" varchar(50),
UNIQUE(ref)
);

View File

@@ -0,0 +1,35 @@
-- 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
);

View File

@@ -2,23 +2,27 @@
-- (c) 2004, PostgreSQL Inc.
-- (c) 2005, Laurent Destailleur.
-- phpMyAdmin SQL Dump
-- version 2.6.2-Debian-3sarge3
-- http://www.phpmyadmin.net
--
-- Serveur: localhost
-- G<EFBFBD>n<EFBFBD>r<EFBFBD> le : Mercredi 20 Juin 2007 <20> 15:13
-- Version du serveur: 4.0.24
-- Version de PHP: 4.3.10-19
--
-- Base de donn<6E>es: `dolidev`
--
-- --------------------------------------------------------
--
-- Structure de la table `llx_osc_categories`
--
-- ===================================================================
-- Copyright (C) 2005 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
-- 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_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 (
rowid SERIAL PRIMARY KEY,

View File

@@ -19,15 +19,17 @@
-- 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_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 $
--
-- ===================================================================
CREATE TABLE IF NOT EXISTS `llx_osc_customer` (
"`rowid`" int4 NOT NULL default '0',
"`datem`" timestamp default NULL,
"`fk_soc`" int4 NOT NULL default '0',
PRIMARY KEY (`rowid`),
"UNIQUE" UNIQUE (`fk_soc`)
CREATE TABLE llx_osc_customer (
"rowid" int4 NOT NULL default '0',
"datem" timestamp default NULL,
"fk_soc" int4 NOT NULL default '0',
UNIQUE(fk_soc)
) 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);

View File

@@ -19,15 +19,17 @@
-- 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_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 $
--
-- ===================================================================
CREATE TABLE IF NOT EXISTS `llx_osc_order` (
"`rowid`" int4 NOT NULL default '0',
"`datem`" timestamp default NULL,
"`fk_commande`" int4 NOT NULL default '0',
PRIMARY KEY (`rowid`),
"UNIQUE" UNIQUE (`fk_commande`)
CREATE TABLE llx_osc_order (
"rowid" int4 NOT NULL default '0',
"datem" timestamp default NULL,
"fk_commande" int4 NOT NULL default '0',
UNIQUE(fk_commande)
) 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);

View File

@@ -19,17 +19,19 @@
-- 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_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 $
--
-- ===================================================================
CREATE TABLE IF NOT EXISTS `llx_osc_product` (
"`rowid`" int4 NOT NULL default '0',
"`datem`" timestamp default NULL,
"`fk_product`" int4 NOT NULL default '0',
PRIMARY KEY (`rowid`),
"UNIQUE" UNIQUE (`fk_product`)
CREATE TABLE llx_osc_product (
"rowid" int4 NOT NULL default '0',
"datem" timestamp default NULL,
"fk_product" int4 NOT NULL default '0',
UNIQUE(fk_product)
) 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);

View File

@@ -22,8 +22,7 @@
-- $Id$
-- $Source$
--
-- Historique des remises clients
--
-- Historique evolution de la remise relative des tiers
-- ========================================================================