2
0
forked from Wavyzz/dolibarr

New: Ajout script qui met a jour tous les sql de postgres partir des sql de mysql.

This commit is contained in:
Laurent Destailleur
2005-02-28 15:52:24 +00:00
parent f332032fac
commit 688574189a
148 changed files with 5928 additions and 3882 deletions

View File

@@ -0,0 +1,281 @@
#!/usr/bin/perl -w
#------------------------------------------------------------------------------
# Ce script est une version modifi<66>e de mysql2pgsql afin de:
# - g<>rer les base mysql innodb
# - traiter tous les fichiers ../mysq/data/*.sql vers ./pgsql/data
# - g<>rer les autoincrement en SERIAL plutot qu'en s<>quenceurs
# - utiliser le CHECK plutot que des sous-tables pour les types enum
# - corriger de nombreux bugs
#------------------------------------------------------------------------------
use Data::Dumper;
use Getopt::Long;
use strict;
use vars qw/ $DIR $PROG $Extension $SOURCE $DESTI %filelist /;
# command line options
my( $opt_debug, $opt_help);
# general values
my ($out, $size);
# variables for constructing pre-create-table entities
my $create_sql=''; # if empty we are not making a create statement
my $create_index=''; # if empty we are not making a create statement
my %enum_datafield=(); # holds enumeration choices
my (@column_values,$enum_column, $seq);
my $table="";
#------------------------------------------------------------------------------
# MAIN
#------------------------------------------------------------------------------
($DIR=$0) =~ s/([^\/\\]+)$//; ($PROG=$1) =~ s/\.([^\.]*)$//; $Extension=$1;
$DIR||='.'; $DIR =~ s/([^\/\\])[\\\/]+$/$1/;
$SOURCE="$DIR/../mysql/tables";
$DESTI="$DIR/../pgsql/tables";
# Recherche tous les fichiers .sql
opendir(DIR, $SOURCE);
foreach my $file (readdir(DIR)) {
if ($file =~ /\.sql$/ && -f "$SOURCE/$file") {
print "Found file $file\n";
$filelist{$file}=1;
}
}
closedir(DIR);
# Boucle sur tous les fichiers de SOURCE
#---------------------------------------
foreach my $file (keys %filelist) {
$ARGV[0]="$SOURCE/$file";
$ARGV[1]="$DESTI/$file";
print "Convert file $ARGV[0] into $ARGV[1]\n";
# MySQL to PostgreSQL dump file converter
#
# For usage: perl mysql2pgsql.perl --help
#
# homepage: http://www.rot13.org/~dpavlin/projects.html
# 1999-12-15 DbP -- Dobrica Pavlinusic <dpavlin@rot13.org>
# 1999-12-26 DbP don't make serial from auto_increment, create all manually
# (to set start value right)
# 2000-01-11 DbP now creates sequences with correct value
# 2000-04-25 DbP import into CVS (at cvs.linux.hr)
# 2001-01-29 tpo -- Tomas Pospisek <tpo@sourcepole.ch>:
# 1) make script comply to usage:
# 2) make script output to STDOUT instead of STERR
# 3) change verbosity behaveour
# 4) add debug option
# see rest of changelog at http://cvs.linux.hr/cvsweb.cgi/sql/mysql2pgsql
# 2003-12-16 jsp -- Joe Speigle <joe.speigle@jklh.us>:
# converts: s/\) *Type=MyISAM;/);/i, enum data type -> references,
# auto_increment->sequences
# 2004-01-13 jsp -- moved project to gborg; both the above declined ownership
# 2004-06-29 converts: year(4), year(2)
# homepage: gborg.postgresql.org
GetOptions("debug", "help");
my $DEBUG = $opt_debug || 0;
my $HELP = $opt_help || 0;
if (($HELP) || ! defined($ARGV[0]) || ! defined($ARGV[1])) {
print "Usage: perl $0 {--verbose|--help|--debug} mysql_dump_file.sql pg_dump_file.sql\n";
print "\t* OPTIONS\n";
print "\t--verbose tees to pg_dump_file.sql and STDOUT during conversion\n";
print "\t--debug does ?? \n";
print "\t--help prints this message \n";
print "\t* REQUIRED ARGUMENTS\n";
if (defined ($ARGV[0])) {
print "\tmysql_dump_file.sql ($ARGV[0])\n";
} else {
print "\tmysql_dump_file.sql (undefined)\n";
}
if (defined ($ARGV[1])) {
print "\tpg_dump_file.sql ($ARGV[1])\n";
} else {
print "\tpg_dump_file.sql (undefined)\n";
}
exit 1;
}
open(IN,"<$ARGV[0]") || die "can't open mysql dump file $ARGV[0]";
open(OUT,">$ARGV[1]") || die "can't open pg dump file $ARGV[1]";
print OUT "-- Generated from $PROG\n";
print OUT "-- (c) 2004, PostgreSQL Inc.\n";
print OUT "-- (c) 2005, Laurent Destailleur.\n";
print OUT "\n";
sub output_create {
print OUT $create_sql;
if ($create_index) {
print OUT "\n";
print OUT $create_index;
}
}
# reset when moving from each "create table" to "insert" part of dump
sub reset_vars() {
$create_sql="";
$create_index="";
%enum_datafield=();
$enum_column='';
}
# Boucle sur contenu fichier source
#----------------------------------
while(<IN>) {
# comments or empty lines
if (/^#/ || /^$/ || /^--/) {
print OUT $_;
next;
}
if (/^USE\s*([^;]*);/) {
print OUT "\\c ". $1;
next;
}
if ($create_sql ne "") { # we are inside create table statement so lets process datatypes
if (/\);/i) { # end of create table squence
$create_sql =~ s/,$//g; # strip last , inside create table
&output_create;
&reset_vars();
next;
# LDR Added innodb
} elsif (/(ISAM|innodb)/i) { # end of create table sequence
s/\) *Type=(MyISAM|innodb);/);/i;
$create_sql =~ s/,$//g; # strip last , inside create table
$create_sql .= $_;
&output_create;
&reset_vars();
next;
}
if (/(\w*)\s+enum\(((?:['"]\w+['"]\s*,)+['"]\w+['"])\)(.*)$/i) { # enum handling
$enum_column=$1;
$enum_datafield{$enum_column} = $2; # 'abc','def', ...
my $maxlength=0;
foreach my $enum (split(',',$2)) {
$enum =~ s/[\"\']//g;
if ($maxlength<length($enum)) { $maxlength=length($enum); }
}
$_ = qq~ $1 CHAR($maxlength) CHECK ($1 IN ($2)) $3\n~;
} elsif (/^[\s\t]*(\w*)\s*.*int.*auto_increment/i) { # int,auto_increment -> serial
$seq = qq~${table}_${1}_seq~;
s/[\s\t]*([a-zA-Z_0-9]*)\s*.*int.*auto_increment[^,]*/ $1 SERIAL PRIMARY KEY/ig;
# MYSQL: data_id mediumint(8) unsigned NOT NULL auto_increment,
$create_sql.=$_;
next;
# int type conversion
} elsif (/(\w*)int\(\d+\)/i) {
$size=$1;
$size =~ tr [A-Z] [a-z];
if ($size eq "tiny" || $size eq "small") {
$out = "int2";
} elsif ($size eq "big") {
$out = "int8";
} else {
$out = "int4";
}
s/\w*int\(\d+\)/$out/g;
}
# nuke int unsigned
s/(int\w+)\s+unsigned/$1/gi;
# blob -> text
s/\w*blob/text/gi;
# tinytext/mediumtext -> text
s/tinytext/text/gi;
s/mediumtext/text/gi;
# char -> varchar
# PostgreSQL would otherwise pad with spaces as opposed
# to MySQL! Your user interface may depend on this!
s/(\s+)char/${1}varchar/gi;
# nuke date representation (not supported in PostgreSQL)
s/datetime default '[^']+'/datetime/i;
s/date default '[^']+'/datetime/i;
s/time default '[^']+'/datetime/i;
# change not null datetime field to null valid ones
# (to support remapping of "zero time" to null
s/datetime not null/datetime/i;
# nuke size of timestamp
s/timestamp\([^)]*\)/timestamp/i;
# double -> float8
s/double\([^)]*\)/float8/i;
# add unique to definition of type (MySQL separates this)
if (/unique \w+ \((\w+)\)/i) {
$create_sql.=~s/($1)([^,]+)/$1$2 unique/i;
next;
}
# FIX: unique for multipe columns (col1,col2) are unsupported!
next if (/unique/i);
if (/\bkey\b/i && !/^\s+primary key\s+/i) {
s/KEY(\s+)[^(]*(\s+)/$1 UNIQUE $2/i; # hack off name of the non-primary key
}
# if key(xxx),
if (/key\((\w+)\)/) {
$create_index .= "CREATE INDEX ${table}_$1 ON $table ($1);\n";
next;
}
# quote column names
s/(^\s*)([^\s\-\(]+)(\s*)/$1"$2"$3/gi if (!/\bkey\b/i);
# remap colums with names of existing system attribute
if (/"oid"/i) {
s/"oid"/"_oid"/g;
print STDERR "WARNING: table $table uses column \"oid\" which is renamed to \"_oid\"\nYou should fix application manually! Press return to continue.";
my $wait=<STDIN>;
}
s/oid/_oid/i if (/key/i && /oid/i); # fix oid in key
$create_sql.=$_;
} # END of if ($create_sql ne "") i.e. were inside create table statement so processed datatypes
else { # not inside create table
#---- fix data in inserted data: (from MS world)
# FIX: disabled for now
if (00 && /insert into/i) {
s!\x96!-!g; # --
s!\x93!"!g; # ``
s!\x94!"!g; # ''
s!\x85!... !g; # \ldots
s!\x92!`!g;
}
# fix dates '0000-00-00 00:00:00' (should be null)
s/'0000-00-00 00:00:00'/null/gi;
s/'0000-00-00'/null/gi;
s/'00:00:00'/null/gi;
s/([12]\d\d\d)([01]\d)([0-3]\d)([0-2]\d)([0-6]\d)([0-6]\d)/'$1-$2-$3 $4:$5:$6'/;
if (/create\s+table\s+(\w+)/i) {
$create_sql = $_;
/create\s*table\s*(\w+)/i;
$table=$1 if (defined($1));
} else {
print OUT $_;
}
} # end of if inside create_table
} # END while(<IN>)
close IN;
close OUT;
}
print "Build ".(scalar keys %filelist)." file(s).\n";
0;

View File

@@ -1,32 +1,36 @@
-- =================================================================== -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org> -- (c) 2004, PostgreSQL Inc.
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be> -- (c) 2005, Laurent Destailleur.
-- Copyright (C) 2004 Guillaume Delecourt <guillaume.delecourt@opensides.be>
-- -- ===================================================================
-- This program is free software; you can redistribute it and/or modify -- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- it under the terms of the GNU General Public License as published by -- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
-- the Free Software Foundation; either version 2 of the License, or -- Copyright (C) 2004 Guillaume Delecourt <guillaume.delecourt@opensides.be>
-- (at your option) any later version. --
-- -- This program is free software; you can redistribute it and/or modify
-- This program is distributed in the hope that it will be useful, -- it under the terms of the GNU General Public License as published by
-- but WITHOUT ANY WARRANTY; without even the implied warranty of -- the Free Software Foundation; either version 2 of the License, or
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- (at your option) any later version.
-- GNU General Public License for more details. --
-- -- This program is distributed in the hope that it will be useful,
-- You should have received a copy of the GNU General Public License -- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- along with this program; if not, write to the Free Software -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -- GNU General Public License for more details.
-- --
-- $Id$ -- You should have received a copy of the GNU General Public License
-- $Source$ -- along with this program; if not, write to the Free Software
-- -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-- =================================================================== --
-- $Id$
create table llx_action_def -- $Source$
( --
rowid SERIAL PRIMARY KEY, -- ===================================================================
tms timestamp,
titre varchar(255) NOT NULL, create table llx_action_def
description text, (
objet_type CHAR(10) CHECK (objet_type IN ('ficheinter','facture','propale','mailing')) rowid integer NOT NULL PRIMARY KEY,
); "tms" timestamp,
"titre" varchar(255) NOT NULL,
"description" text,
"objet_type" varchar(10) CHECK (objet_type IN ('ficheinter','facture','propale','mailing'))
);

View File

@@ -1,45 +1,48 @@
-- ======================================================================== -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2001-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org> -- (c) 2004, PostgreSQL Inc.
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be> -- (c) 2005, Laurent Destailleur.
--
-- 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 -- Copyright (C) 2001-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- the Free Software Foundation; either version 2 of the License, or --
-- (at your option) any later version. -- $Id$
-- -- $Source$
-- 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 free software; you can redistribute it and/or modify
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- it under the terms of the GNU General Public License as published by
-- GNU General Public License for more details. -- the Free Software Foundation; either version 2 of the License, or
-- -- (at your option) any later version.
-- You should have received a copy of the GNU General Public License --
-- along with this program; if not, write to the Free Software -- This program is distributed in the hope that it will be useful,
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- Actions commerciales -- GNU General Public License for more details.
-- --
-- $Id$ -- You should have received a copy of the GNU General Public License
-- $Source$ -- along with this program; if not, write to the Free Software
-- -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-- ======================================================================== --
-- Actions commerciales
create table llx_actioncomm --
( -- ========================================================================
id SERIAL PRIMARY KEY,
datea timestamp without time zone, -- action date create table llx_actioncomm
fk_action integer, (
label varchar(50), -- libelle de l'action id SERIAL PRIMARY KEY,
fk_soc integer, "datea" timestamp, -- action date
fk_contact integer default 0, "fk_action" integer,
fk_user_action integer, -- id de la personne qui doit effectuer l'action "label" varchar(50), -- libelle de l'action
fk_user_author integer, "fk_soc" integer,
priority smallint, "fk_contact" integer default 0,
percent smallint, "fk_user_action" integer, -- id de la personne qui doit effectuer l'action
note text, "fk_user_author" integer,
propalrowid integer, "priority" smallint,
fk_facture integer "percent" smallint,
); "note" text,
"propalrowid" integer,
"fk_facture" integer
);

View File

@@ -1,56 +1,60 @@
-- =================================================================== -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2004 Benoit Mortiero <benoit.mortier@opensides.be> -- (c) 2004, PostgreSQL Inc.
-- -- (c) 2005, Laurent Destailleur.
-- 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 -- Copyright (C) 2002-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- (at your option) any later version. -- Copyright (C) 2002-2003 Jean-Louis Bergamo <jlb@j1b.org>
-- --
-- This program is distributed in the hope that it will be useful, -- This program is free software; you can redistribute it and/or modify
-- but WITHOUT ANY WARRANTY; without even the implied warranty of -- it under the terms of the GNU General Public License as published by
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- the Free Software Foundation; either version 2 of the License, or
-- GNU General Public License for more details. -- (at your option) any later version.
-- --
-- You should have received a copy of the GNU General Public License -- This program is distributed in the hope that it will be useful,
-- along with this program; if not, write to the Free Software -- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- -- GNU General Public License for more details.
-- $Id$ --
-- $Source$ -- 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.
--
-- statut -- $Id$
-- 0 : non adherent -- $Source$
-- 1 : adherent --
-- ===================================================================
create table llx_adherent --
( -- statut
rowid SERIAL PRIMARY KEY, -- 0 : non adherent
tms timestamp, -- 1 : adherent
statut smallint NOT NULL DEFAULT 0,
public smallint NOT NULL DEFAULT 0, -- certain champ de la fiche sont ils public ou pas ? create table llx_adherent
fk_adherent_type smallint, (
morphy CHAR(3) CHECK (morphy IN ('mor','phy')) NOT NULL, -- personne morale / personne physique rowid SERIAL PRIMARY KEY,
datevalid timestamp without time zone, -- date de validation "tms" timestamp,
datec timestamp without time zone, -- date de creation "statut" smallint NOT NULL DEFAULT 0,
prenom varchar(50), "public" smallint NOT NULL DEFAULT 0, -- certain champ de la fiche sont ils public ou pas ?
nom varchar(50), "fk_adherent_type" smallint,
societe varchar(50), "morphy" varchar(3) CHECK (morphy IN ('mor','phy')) NOT NULL, -- personne morale / personne physique
adresse text, "datevalid" datetime, -- date de validation
cp varchar(30), "datec" datetime, -- date de creation
ville varchar(50), "prenom" varchar(50),
pays varchar(50), "nom" varchar(50),
email varchar(255), "societe" varchar(50),
login varchar(50) NOT NULL, -- login utilise pour editer sa fiche "adresse" text,
pass varchar(50), -- pass utilise pour editer sa fiche "cp" varchar(30),
naiss date, -- date de naissance "ville" varchar(50),
photo varchar(255), -- url vers la photo de l'adherent "pays" varchar(50),
fk_user_author integer NOT NULL, "email" varchar(255),
fk_user_mod integer NOT NULL, "login" varchar(50) NOT NULL, -- login utilise pour editer sa fiche
fk_user_valid integer NOT NULL, "pass" varchar(50), -- pass utilise pour editer sa fiche
datefin timestamp without time zone NOT NULL, -- date de fin de validit<69> de la cotisation "naiss" date, -- date de naissance
note text "photo" varchar(255), -- url vers la photo de l'adherent
); "fk_user_author" integer NOT NULL,
"fk_user_mod" integer NOT NULL,
CREATE UNIQUE INDEX llx_adherent_login ON llx_adherent (login); "fk_user_valid" integer NOT NULL,
"datefin" datetime, -- date de fin de validit<69> de la cotisation
"note" text,
);

View File

@@ -1,34 +1,36 @@
-- =================================================================== -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2002-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org> -- (c) 2004, PostgreSQL Inc.
-- Copyright (C) 2002-2003 Jean-Louis Bergamo <jlb@j1b.org> -- (c) 2005, Laurent Destailleur.
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
-- -- ===================================================================
-- This program is free software; you can redistribute it and/or modify -- Copyright (C) 2002-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- it under the terms of the GNU General Public License as published by -- Copyright (C) 2002-2003 Jean-Louis Bergamo <jlb@j1b.org>
-- the Free Software Foundation; either version 2 of the License, or --
-- (at your option) any later version. -- 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 distributed in the hope that it will be useful, -- the Free Software Foundation; either version 2 of the License, or
-- but WITHOUT ANY WARRANTY; without even the implied warranty of -- (at your option) any later version.
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --
-- GNU General Public License for more details. -- This program is distributed in the hope that it will be useful,
-- -- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- You should have received a copy of the GNU General Public License -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- along with this program; if not, write to the Free Software -- GNU General Public License for more details.
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --
-- -- You should have received a copy of the GNU General Public License
-- $Id$ -- along with this program; if not, write to the Free Software
-- $Source$ -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-- --
-- =================================================================== -- $Id$
-- $Source$
create table llx_adherent_options --
( -- ===================================================================
optid SERIAL PRIMARY KEY,
tms timestamp, -- telfixe varchar(15),
adhid integer NOT NULL -- id de l'adherent auquel correspond ces attributs optionnel -- teljob varchar(15)
-- telfixe varchar(15),
-- teljob varchar(15) create table llx_adherent_options
); (
optid SERIAL PRIMARY KEY,
CREATE UNIQUE INDEX llx_adherent_options_adhid ON llx_adherent_options (adhid); "tms" timestamp,
"adhid" integer NOT NULL, -- id de l'adherent auquel correspond ces attributs optionnel
);

View File

@@ -1,30 +1,33 @@
-- =================================================================== -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2002-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org> -- (c) 2004, PostgreSQL Inc.
-- Copyright (C) 2002-2003 Jean-Louis Bergamo <jlb@j1b.org> -- (c) 2005, Laurent Destailleur.
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
-- -- ===================================================================
-- This program is free software; you can redistribute it and/or modify -- Copyright (C) 2002-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- it under the terms of the GNU General Public License as published by -- Copyright (C) 2002-2003 Jean-Louis Bergamo <jlb@j1b.org>
-- the Free Software Foundation; either version 2 of the License, or --
-- (at your option) any later version. -- 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 distributed in the hope that it will be useful, -- the Free Software Foundation; either version 2 of the License, or
-- but WITHOUT ANY WARRANTY; without even the implied warranty of -- (at your option) any later version.
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --
-- GNU General Public License for more details. -- This program is distributed in the hope that it will be useful,
-- -- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- You should have received a copy of the GNU General Public License -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- along with this program; if not, write to the Free Software -- GNU General Public License for more details.
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --
-- -- You should have received a copy of the GNU General Public License
-- $Id$ -- along with this program; if not, write to the Free Software
-- $Source$ -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-- --
-- =================================================================== -- $Id$
-- $Source$
create table llx_adherent_options_label --
( -- ===================================================================
name varchar(64) PRIMARY KEY, -- nom de l'attribut
tms timestamp, create table llx_adherent_options_label
label varchar(255) NOT NULL -- label correspondant a l'attribut (
); name varchar(64) PRIMARY KEY, -- nom de l'attribut
"tms" timestamp,
"label" varchar(255) NOT NULL -- label correspondant a l'attribut
);

View File

@@ -1,38 +1,42 @@
-- =================================================================== -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be> -- (c) 2004, PostgreSQL Inc.
-- -- (c) 2005, Laurent Destailleur.
-- 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 -- Copyright (C) 2002-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- (at your option) any later version. -- Copyright (C) 2002-2003 Jean-Louis Bergamo <jlb@j1b.org>
-- --
-- This program is distributed in the hope that it will be useful, -- This program is free software; you can redistribute it and/or modify
-- but WITHOUT ANY WARRANTY; without even the implied warranty of -- it under the terms of the GNU General Public License as published by
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- the Free Software Foundation; either version 2 of the License, or
-- GNU General Public License for more details. -- (at your option) any later version.
-- --
-- You should have received a copy of the GNU General Public License -- This program is distributed in the hope that it will be useful,
-- along with this program; if not, write to the Free Software -- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- -- GNU General Public License for more details.
-- $Id$ --
-- $Source$ -- 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.
--
-- statut -- $Id$
-- 0 : actif -- $Source$
-- 1 : inactif --
-- ===================================================================
--
create table llx_adherent_type -- statut
( -- 0 : actif
rowid SERIAL PRIMARY KEY, -- 1 : inactif
tms timestamp,
statut smallint NOT NULL DEFAULT 0, create table llx_adherent_type
libelle varchar(50), (
cotisation CHAR(3) CHECK (cotisation IN ('yes','no')) NOT NULL DEFAULT 'yes', rowid SERIAL PRIMARY KEY,
vote CHAR(3) CHECK (vote IN ('yes','no')) NOT NULL DEFAULT 'yes', "tms" timestamp,
note text, "statut" smallint NOT NULL DEFAULT 0,
mail_valid text -- mail envoye a la validation "libelle" varchar(50),
); "cotisation" varchar(3) CHECK (cotisation IN ('yes','no')) NOT NULL DEFAULT 'yes',
"vote" varchar(3) CHECK (vote IN ('yes','no')) NOT NULL DEFAULT 'yes',
"note" text,
"mail_valid" text -- mail envoye a la validation
);

View File

@@ -1,35 +1,39 @@
-- ============================================================================ -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2004 Benoit mortier <benoit;mortier@opensides.be> -- (c) 2004, PostgreSQL Inc.
-- -- (c) 2005, Laurent Destailleur.
-- 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 -- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- (at your option) any later version. --
-- -- This program is free software; you can redistribute it and/or modify
-- This program is distributed in the hope that it will be useful, -- it under the terms of the GNU General Public License as published by
-- but WITHOUT ANY WARRANTY; without even the implied warranty of -- the Free Software Foundation; either version 2 of the License, or
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- (at your option) any later version.
-- GNU General Public License for more details. --
-- -- This program is distributed in the hope that it will be useful,
-- You should have received a copy of the GNU General Public License -- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- along with this program; if not, write to the Free Software -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -- GNU General Public License for more details.
-- --
-- $Id$ -- You should have received a copy of the GNU General Public License
-- $Source$ -- along with this program; if not, write to the Free Software
-- -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-- ============================================================================ --
-- $Id$
create table llx_album -- $Source$
( --
rowid serial PRIMARY KEY, -- ============================================================================
osc_id integer NOT NULL,
tms timestamp, create table llx_album
ref varchar(12), (
title varchar(64), rowid SERIAL PRIMARY KEY,
annee smallint, "osc_id" integer NOT NULL,
description text, "tms" timestamp,
collectif smallint, "ref" varchar(12),
fk_user_author integer "title" varchar(64),
); "annee" int2,
"description" text,
"collectif" tinyint,
"fk_user_author" integer
);

View File

@@ -1,30 +1,33 @@
-- ============================================================================ -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org> -- (c) 2004, PostgreSQL Inc.
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be> -- (c) 2005, Laurent Destailleur.
--
-- 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 -- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- the Free Software Foundation; either version 2 of the License, or --
-- (at your option) any later version. -- 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 distributed in the hope that it will be useful, -- the Free Software Foundation; either version 2 of the License, or
-- but WITHOUT ANY WARRANTY; without even the implied warranty of -- (at your option) any later version.
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --
-- GNU General Public License for more details. -- This program is distributed in the hope that it will be useful,
-- -- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- You should have received a copy of the GNU General Public License -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- along with this program; if not, write to the Free Software -- GNU General Public License for more details.
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --
-- -- You should have received a copy of the GNU General Public License
-- $Id$ -- along with this program; if not, write to the Free Software
-- $Source$ -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-- --
-- ============================================================================ -- $Id$
-- $Source$
create table llx_album_to_groupart --
( -- ============================================================================
fk_album integer NOT NULL,
fk_groupart integer NOT NULL,
create table llx_album_to_groupart
UNIQUE (fk_album, fk_groupart) (
); "fk_album" integer NOT NULL,
"fk_groupart" integer NOT NULL
);

View File

@@ -1,34 +1,37 @@
-- ============================================================================ -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org> -- (c) 2004, PostgreSQL Inc.
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be> -- (c) 2005, Laurent Destailleur.
--
-- 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 -- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- the Free Software Foundation; either version 2 of the License, or --
-- (at your option) any later version. -- 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 distributed in the hope that it will be useful, -- the Free Software Foundation; either version 2 of the License, or
-- but WITHOUT ANY WARRANTY; without even the implied warranty of -- (at your option) any later version.
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --
-- GNU General Public License for more details. -- This program is distributed in the hope that it will be useful,
-- -- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- You should have received a copy of the GNU General Public License -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- along with this program; if not, write to the Free Software -- GNU General Public License for more details.
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --
-- -- You should have received a copy of the GNU General Public License
-- $Id$ -- along with this program; if not, write to the Free Software
-- $Source$ -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-- --
-- ============================================================================ -- $Id$
-- $Source$
create table llx_appro --
( -- ============================================================================
rowid SERIAL PRIMARY KEY,
datec timestamp without time zone, create table llx_appro
tms timestamp, (
fk_product integer NOT NULL, rowid SERIAL PRIMARY KEY,
quantity smallint NOT NULL, "datec" datetime,
price real, "tms" timestamp,
fk_user_author integer "fk_product" integer NOT NULL,
); "quantity" smallint unsigned NOT NULL,
"price" real,
"fk_user_author" integer
);

View File

@@ -1,31 +1,34 @@
-- ============================================================================ -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org> -- (c) 2004, PostgreSQL Inc.
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be> -- (c) 2005, Laurent Destailleur.
--
-- 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 -- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- the Free Software Foundation; either version 2 of the License, or --
-- (at your option) any later version. -- 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 distributed in the hope that it will be useful, -- the Free Software Foundation; either version 2 of the License, or
-- but WITHOUT ANY WARRANTY; without even the implied warranty of -- (at your option) any later version.
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --
-- GNU General Public License for more details. -- This program is distributed in the hope that it will be useful,
-- -- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- You should have received a copy of the GNU General Public License -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- along with this program; if not, write to the Free Software -- GNU General Public License for more details.
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --
-- -- You should have received a copy of the GNU General Public License
-- $Id$ -- along with this program; if not, write to the Free Software
-- $Source$ -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-- --
-- ============================================================================ -- $Id$
-- $Source$
create table llx_auteur --
( -- ============================================================================
rowid SERIAL PRIMARY KEY,
oscid integer NOT NULL, create table llx_auteur
tms timestamp, (
nom varchar(255), rowid SERIAL PRIMARY KEY,
fk_user_author integer "oscid" integer NOT NULL,
); "tms" timestamp,
"nom" varchar(255),
"fk_user_author" integer
);

View File

@@ -1,45 +1,46 @@
-- =================================================================== -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2000-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org> -- (c) 2004, PostgreSQL Inc.
-- Copyright (C) 2002-2003 <20>ric Seigne <erics@rycks.com> -- (c) 2005, Laurent Destailleur.
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
-- -- ===================================================================
-- This program is free software; you can redistribute it and/or modify -- Copyright (C) 2000-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- it under the terms of the GNU General Public License as published by --
-- the Free Software Foundation; either version 2 of the License, or -- $Id$
-- (at your option) any later version. -- $Source$
-- --
-- This program is distributed in the hope that it will be useful, -- This program is free software; you can redistribute it and/or modify
-- but WITHOUT ANY WARRANTY; without even the implied warranty of -- it under the terms of the GNU General Public License as published by
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- the Free Software Foundation; either version 2 of the License, or
-- GNU General Public License for more details. -- (at your option) any later version.
-- --
-- You should have received a copy of the GNU General Public License -- This program is distributed in the hope that it will be useful,
-- along with this program; if not, write to the Free Software -- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- -- GNU General Public License for more details.
-- $Id$ --
-- $Source$ -- 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.
--
-- ===================================================================
create table llx_bank
(
rowid SERIAL PRIMARY KEY,
datec timestamp without time zone, create table llx_bank
datev date, -- date de valeur (
dateo date, -- date operation rowid SERIAL PRIMARY KEY,
amount real NOT NULL default 0, "datec" datetime,
label varchar(255), "datev" date, -- date de valeur
fk_account integer, "dateo" date, -- date operation
fk_user_author integer, "amount" real NOT NULL default 0,
fk_user_rappro integer, "label" varchar(255),
fk_type varchar(4), -- CB, Virement, cheque "fk_account" integer,
num_releve varchar(50), "fk_user_author" integer,
num_chq int, "fk_user_rappro" integer,
rappro int default 0, "fk_type" varchar(4), -- CB, Virement, cheque
note text, "num_releve" varchar(50),
"num_chq" int,
"rappro" tinyint default 0,
author varchar(40) -- a supprimer apres migration "note" text,
); "author" varchar(40) -- a supprimer apres migration
);

View File

@@ -1,45 +1,51 @@
-- =================================================================== -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2000-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org> -- (c) 2004, PostgreSQL Inc.
-- Copyright (C) 2002-2003 <20>ric Seigne <erics@rycks.com> -- (c) 2005, Laurent Destailleur.
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
-- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net> -- =============================================================================
-- -- Copyright (C) 2000-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- This program is free software; you can redistribute it and/or modify -- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
-- 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$ -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-- $Source$ --
-- -- $Id$
-- =================================================================== -- $Source$
--
create table llx_bank_account --
( -- courant : indique si c'est un compte courant
rowid SERIAL PRIMARY KEY, -- clos : le compte est-il clos ou encore ouvert
datec timestamp without time zone, --
tms timestamp, -- =============================================================================
label varchar(30),
bank varchar(60), create table llx_bank_account
code_banque varchar(7), (
code_guichet varchar(6), rowid SERIAL PRIMARY KEY,
number varchar(255), "datec" datetime,
cle_rib varchar(5), "tms" timestamp,
bic varchar(10), "label" varchar(30),
iban_prefix varchar(5), "bank" varchar(60),
domiciliation varchar(255), "code_banque" varchar(7),
proprio varchar(60), "code_guichet" varchar(6),
adresse_proprio varchar(255), "number" varchar(255),
courant smallint DEFAULT 0 NOT NULL, "cle_rib" varchar(5),
clos smallint DEFAULT 0 NOT NULL, "bic" varchar(10),
account_number varchar(8) "iban_prefix" varchar(5),
); "domiciliation" varchar(255),
"proprio" varchar(60),
"adresse_proprio" varchar(255),
"courant" smallint DEFAULT 0 NOT NULL,
"clos" smallint DEFAULT 0 NOT NULL,
"account_number" varchar(8)
);

View File

@@ -1,27 +1,29 @@
-- =================================================================== -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be> -- (c) 2004, PostgreSQL Inc.
-- -- (c) 2005, Laurent Destailleur.
-- 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 -- $Id$
-- (at your option) any later version. -- $Source$
-- --
-- This program is distributed in the hope that it will be useful, -- This program is free software; you can redistribute it and/or modify
-- but WITHOUT ANY WARRANTY; without even the implied warranty of -- it under the terms of the GNU General Public License as published by
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- the Free Software Foundation; either version 2 of the License, or
-- GNU General Public License for more details. -- (at your option) any later version.
-- --
-- You should have received a copy of the GNU General Public License -- This program is distributed in the hope that it will be useful,
-- along with this program; if not, write to the Free Software -- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- -- GNU General Public License for more details.
-- $Id$ --
-- $Source$ -- 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.
--
create table llx_bank_categ -- ===================================================================
(
rowid SERIAL PRIMARY KEY, create table llx_bank_categ
label varchar(255) (
); rowid SERIAL PRIMARY KEY,
"label" varchar(255)
);

View File

@@ -1,29 +1,31 @@
-- =================================================================== -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be> -- (c) 2004, PostgreSQL Inc.
-- -- (c) 2005, Laurent Destailleur.
-- 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 -- $Id$
-- (at your option) any later version. -- $Source$
-- --
-- This program is distributed in the hope that it will be useful, -- This program is free software; you can redistribute it and/or modify
-- but WITHOUT ANY WARRANTY; without even the implied warranty of -- it under the terms of the GNU General Public License as published by
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- the Free Software Foundation; either version 2 of the License, or
-- GNU General Public License for more details. -- (at your option) any later version.
-- --
-- You should have received a copy of the GNU General Public License -- This program is distributed in the hope that it will be useful,
-- along with this program; if not, write to the Free Software -- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- -- GNU General Public License for more details.
-- $Id$ --
-- $Source$ -- 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.
--
create table llx_bank_class -- ===================================================================
(
lineid integer NOT NULL,
fk_categ integer NOT NULL create table llx_bank_class
); (
"lineid" integer NOT NULL,
create index llx_bank_class_lineid on llx_bank_class(lineid); "fk_categ" integer NOT NULL,
"INDEX"(lineid)
);

View File

@@ -1,35 +1,28 @@
-- =================================================================== -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net> -- (c) 2004, PostgreSQL Inc.
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be> -- (c) 2005, Laurent Destailleur.
--
-- 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 -- Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
-- the Free Software Foundation; either version 2 of the License, or --
-- (at your option) any later version. -- 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 distributed in the hope that it will be useful, -- the Free Software Foundation; either version 2 of the License, or
-- but WITHOUT ANY WARRANTY; without even the implied warranty of -- (at your option) any later version.
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --
-- GNU General Public License for more details. -- This program is distributed in the hope that it will be useful,
-- -- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- You should have received a copy of the GNU General Public License -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- along with this program; if not, write to the Free Software -- GNU General Public License for more details.
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --
-- -- You should have received a copy of the GNU General Public License
-- $Id$ -- along with this program; if not, write to the Free Software
-- $Source$ -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-- --
-- =================================================================== -- $Id$
-- $Source$
create table llx_cash --
( -- ===================================================================
rowid serial PRIMARY KEY,
datec timestamp,
dateo date NOT NULL, -- date operation ALTER TABLE llx_bank_url ADD UNIQUE uk_bank_url (fk_bank,url_id);
amount real NOT NULL default 0,
label varchar(255),
fk_account integer, -- Pour gerer plusieurs caisse
fk_user_author integer,
fk_type varchar(4), -- Liquide, retrait, depot
note text
);

View File

@@ -1,31 +1,34 @@
-- =================================================================== -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org> -- (c) 2004, PostgreSQL Inc.
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be> -- (c) 2005, Laurent Destailleur.
--
-- 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 -- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- the Free Software Foundation; either version 2 of the License, or --
-- (at your option) any later version. -- 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 distributed in the hope that it will be useful, -- the Free Software Foundation; either version 2 of the License, or
-- but WITHOUT ANY WARRANTY; without even the implied warranty of -- (at your option) any later version.
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --
-- GNU General Public License for more details. -- This program is distributed in the hope that it will be useful,
-- -- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- You should have received a copy of the GNU General Public License -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- along with this program; if not, write to the Free Software -- GNU General Public License for more details.
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --
-- -- You should have received a copy of the GNU General Public License
-- $Id$ -- along with this program; if not, write to the Free Software
-- $Source$ -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-- --
-- =================================================================== -- $Id$
-- $Source$
create table llx_bank_url --
( -- ===================================================================
rowid SERIAL PRIMARY KEY,
fk_bank integer, create table llx_bank_url
url_id integer, (
url varchar(255), rowid SERIAL PRIMARY KEY,
label varchar(255) "fk_bank" integer,
); "url_id" integer,
"url" varchar(255),
"label" varchar(255)
);

View File

@@ -1,30 +1,31 @@
-- =================================================================== -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be> -- (c) 2004, PostgreSQL Inc.
-- -- (c) 2005, Laurent Destailleur.
-- 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 -- $Id$
-- (at your option) any later version. -- $Source$
-- --
-- This program is distributed in the hope that it will be useful, -- This program is free software; you can redistribute it and/or modify
-- but WITHOUT ANY WARRANTY; without even the implied warranty of -- it under the terms of the GNU General Public License as published by
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- the Free Software Foundation; either version 2 of the License, or
-- GNU General Public License for more details. -- (at your option) any later version.
-- --
-- You should have received a copy of the GNU General Public License -- This program is distributed in the hope that it will be useful,
-- along with this program; if not, write to the Free Software -- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- -- GNU General Public License for more details.
-- $Id$ --
-- $Source$ -- 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.
--
-- ===================================================================
create table llx_bookmark
( create table llx_bookmark
rowid SERIAL PRIMARY KEY, (
fk_soc integer, rowid SERIAL PRIMARY KEY,
fk_user integer, "fk_soc" integer,
dateb timestamp without time zone "fk_user" integer,
); "dateb" datetime
);

View File

@@ -1,29 +1,33 @@
-- ============================================================================ -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org> -- (c) 2004, PostgreSQL Inc.
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be> -- (c) 2005, Laurent Destailleur.
--
-- 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 -- Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- the Free Software Foundation; either version 2 of the License, or --
-- (at your option) any later version. -- 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 distributed in the hope that it will be useful, -- the Free Software Foundation; either version 2 of the License, or
-- but WITHOUT ANY WARRANTY; without even the implied warranty of -- (at your option) any later version.
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --
-- GNU General Public License for more details. -- This program is distributed in the hope that it will be useful,
-- -- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- You should have received a copy of the GNU General Public License -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- along with this program; if not, write to the Free Software -- GNU General Public License for more details.
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --
-- -- You should have received a copy of the GNU General Public License
-- $Id$ -- along with this program; if not, write to the Free Software
-- $Source$ -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-- --
-- =========================================================================== -- $Id$
-- $Source$
create table llx_bookmark4u_login --
( -- ===========================================================================
rowid serial PRIMARY KEY,
fk_user integer,
bk4u_uid integer create table llx_bookmark4u_login
); (
rowid SERIAL PRIMARY KEY,
"fk_user" integer,
"bk4u_uid" integer
);

View File

@@ -1,34 +1,37 @@
-- ============================================================================ -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org> -- (c) 2004, PostgreSQL Inc.
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be> -- (c) 2005, Laurent Destailleur.
--
-- 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 -- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- the Free Software Foundation; either version 2 of the License, or --
-- (at your option) any later version. -- 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 distributed in the hope that it will be useful, -- the Free Software Foundation; either version 2 of the License, or
-- but WITHOUT ANY WARRANTY; without even the implied warranty of -- (at your option) any later version.
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --
-- GNU General Public License for more details. -- This program is distributed in the hope that it will be useful,
-- -- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- You should have received a copy of the GNU General Public License -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- along with this program; if not, write to the Free Software -- GNU General Public License for more details.
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --
-- -- You should have received a copy of the GNU General Public License
-- $Id$ -- along with this program; if not, write to the Free Software
-- $Source$ -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-- --
-- =========================================================================== -- $Id$
-- -- $Source$
-- position : 0-index.php, 1-left, 2-right --
-- -- ===========================================================================
-- --
-- position : 0-index.php, 1-left, 2-right
create table llx_boxes --
( --
rowid SERIAL PRIMARY KEY,
box_id integer NOT NULL, create table llx_boxes
position smallint NOT NULL (
rowid SERIAL PRIMARY KEY,
); "box_id" integer NOT NULL,
"position" smallint NOT NULL,
"box_order" smallint default 0 NOT NULL
);

View File

@@ -1,30 +1,33 @@
-- ============================================================================ -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org> -- (c) 2004, PostgreSQL Inc.
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be> -- (c) 2005, Laurent Destailleur.
--
-- 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 -- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- the Free Software Foundation; either version 2 of the License, or --
-- (at your option) any later version. -- 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 distributed in the hope that it will be useful, -- the Free Software Foundation; either version 2 of the License, or
-- but WITHOUT ANY WARRANTY; without even the implied warranty of -- (at your option) any later version.
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --
-- GNU General Public License for more details. -- This program is distributed in the hope that it will be useful,
-- -- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- You should have received a copy of the GNU General Public License -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- along with this program; if not, write to the Free Software -- GNU General Public License for more details.
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --
-- -- You should have received a copy of the GNU General Public License
-- $Id$ -- along with this program; if not, write to the Free Software
-- $Source$ -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-- --
-- =========================================================================== -- $Id$
-- $Source$
create table llx_boxes_def --
( -- ===========================================================================
rowid SERIAL PRIMARY KEY,
name varchar(255) NOT NULL, create table llx_boxes_def
file varchar(255) NOT NULL, (
note text rowid SERIAL PRIMARY KEY,
); "name" varchar(255) NOT NULL,
"file" varchar(255) NOT NULL,
"note" text
);

View File

@@ -1,33 +1,37 @@
-- ============================================================================ -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net> -- (c) 2004, PostgreSQL Inc.
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be> -- (c) 2005, Laurent Destailleur.
--
-- 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 -- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
-- the Free Software Foundation; either version 2 of the License, or --
-- (at your option) any later version. -- 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 distributed in the hope that it will be useful, -- the Free Software Foundation; either version 2 of the License, or
-- but WITHOUT ANY WARRANTY; without even the implied warranty of -- (at your option) any later version.
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --
-- GNU General Public License for more details. -- This program is distributed in the hope that it will be useful,
-- -- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- You should have received a copy of the GNU General Public License -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- along with this program; if not, write to the Free Software -- GNU General Public License for more details.
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --
-- -- You should have received a copy of the GNU General Public License
-- $Id$ -- along with this program; if not, write to the Free Software
-- $Source$ -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-- --
-- ============================================================================ -- $Id$
-- $Source$
create table llx_c_accountingsystem --
( -- ============================================================================
rowid SERIAL PRIMARY KEY,
fk_pays integer NOT NULL, create table llx_c_accountingsystem
pcg_version varchar(12) NOT NULL, (
pcg_type varchar(20) NOT NULL, rowid SERIAL PRIMARY KEY,
pcg_subtype varchar(20) NOT NULL, "fk_pays" integer NOT NULL,
label varchar(128) NOT NULL, "pcg_version" varchar(12) NOT NULL,
account_number varchar(20) NOT NULL "pcg_type" varchar(20) NOT NULL,
); "pcg_subtype" varchar(20) NOT NULL,
"label" varchar(128) NOT NULL,
"account_number" varchar(20) NOT NULL,
"account_parent" varchar(20)
);

View File

@@ -1,35 +1,35 @@
-- ======================================================================== -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org> -- (c) 2004, PostgreSQL Inc.
-- Copyright (C) 2002-2003 <20>ric Seigne <erics@rycks.com> -- (c) 2005, Laurent Destailleur.
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
-- -- ========================================================================
-- This program is free software; you can redistribute it and/or modify -- Copyright (C) 2001-2002,2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- it under the terms of the GNU General Public License as published by -- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
-- the Free Software Foundation; either version 2 of the License, or --
-- (at your option) any later version. -- $Id$
-- -- $Source$
-- 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 free software; you can redistribute it and/or modify
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- it under the terms of the GNU General Public License as published by
-- GNU General Public License for more details. -- the Free Software Foundation; either version 2 of the License, or
-- -- (at your option) any later version.
-- You should have received a copy of the GNU General Public License --
-- along with this program; if not, write to the Free Software -- This program is distributed in the hope that it will be useful,
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- $Id$ -- GNU General Public License for more details.
-- $Source$ --
-- -- 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.
create table llx_c_actioncomm --
( -- ========================================================================
id SERIAL PRIMARY KEY,
code varchar(12) UNIQUE NOT NULL, create table llx_c_actioncomm
type varchar(10) DEFAULT 'system' NOT NULL, (
libelle varchar(30) NOT NULL, id integer PRIMARY KEY,
active smallint DEFAULT 1 NOT NULL, "type" varchar(10) DEFAULT 'system' NOT NULL,
todo smallint "libelle" varchar(30) NOT NULL,
); "active" tinyint DEFAULT 1 NOT NULL,
"todo" tinyint
);

View File

@@ -1,31 +1,35 @@
-- ======================================================================== -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org> -- (c) 2004, PostgreSQL Inc.
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be> -- (c) 2005, Laurent Destailleur.
--
-- 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 -- Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- the Free Software Foundation; either version 2 of the License, or -- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
-- (at your option) any later version. --
-- -- $Id$
-- This program is distributed in the hope that it will be useful, -- $Source$
-- but WITHOUT ANY WARRANTY; without even the implied warranty of --
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- This program is free software; you can redistribute it and/or modify
-- GNU General Public License for more details. -- it under the terms of the GNU General Public License as published by
-- -- the Free Software Foundation; either version 2 of the License, or
-- You should have received a copy of the GNU General Public License -- (at your option) any later version.
-- along with this program; if not, write to the Free Software --
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -- This program is distributed in the hope that it will be useful,
-- -- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- $Id$ -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- $Source$ -- 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
create table llx_c_ape -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
( --
rowid serial UNIQUE, -- ========================================================================
code_ape varchar(5) PRIMARY KEY,
libelle varchar(255), create table llx_c_ape
active smallint DEFAULT 1 NOT NULL (
); rowid SERIAL PRIMARY KEY,
code_ape varchar(5) PRIMARY KEY,
"libelle" varchar(255),
"active" tinyint DEFAULT 1 NOT NULL
);

View File

@@ -1,33 +1,37 @@
-- ======================================================================== -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org> -- (c) 2004, PostgreSQL Inc.
-- Copyright (C) 2002-2003 <20>ric Seigne <erics@rycks.com> -- (c) 2005, Laurent Destailleur.
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
-- -- ========================================================================
-- This program is free software; you can redistribute it and/or modify -- Copyright (C) 2001-2002,2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- it under the terms of the GNU General Public License as published by -- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
-- the Free Software Foundation; either version 2 of the License, or --
-- (at your option) any later version. -- 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 distributed in the hope that it will be useful, -- the Free Software Foundation; either version 2 of the License, or
-- but WITHOUT ANY WARRANTY; without even the implied warranty of -- (at your option) any later version.
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --
-- GNU General Public License for more details. -- This program is distributed in the hope that it will be useful,
-- -- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- You should have received a copy of the GNU General Public License -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- along with this program; if not, write to the Free Software -- GNU General Public License for more details.
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --
-- -- You should have received a copy of the GNU General Public License
-- $Id$ -- along with this program; if not, write to the Free Software
-- $Source$ -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-- --
-- ======================================================================== -- $Id$
create table llx_c_chargesociales -- $Source$
( --
id SERIAL PRIMARY KEY, -- ========================================================================
libelle varchar(80),
deductible integer DEFAULT 0 NOT NULL, create table llx_c_chargesociales
active integer DEFAULT 1 NOT NULL (
); id integer PRIMARY KEY,
"libelle" varchar(80),
"deductible" smallint DEFAULT 0 NOT NULL,
"active" tinyint DEFAULT 1 NOT NULL
);

View File

@@ -1,29 +1,33 @@
-- ======================================================================== -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be> -- (c) 2004, PostgreSQL Inc.
-- -- (c) 2005, Laurent Destailleur.
-- 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 -- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
-- (at your option) any later version. -- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
-- --
-- This program is distributed in the hope that it will be useful, -- This program is free software; you can redistribute it and/or modify
-- but WITHOUT ANY WARRANTY; without even the implied warranty of -- it under the terms of the GNU General Public License as published by
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- the Free Software Foundation; either version 2 of the License, or
-- GNU General Public License for more details. -- (at your option) any later version.
-- --
-- You should have received a copy of the GNU General Public License -- This program is distributed in the hope that it will be useful,
-- along with this program; if not, write to the Free Software -- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- -- GNU General Public License for more details.
-- $Id$ --
-- $Source$ -- 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.
create table llx_c_civilite --
( -- $Id$
rowid serial PRIMARY KEY, -- $Source$
code varchar(6) UNIQUE NOT NULL, -- ========================================================================
civilite varchar(50),
active smallint DEFAULT 1 NOT NULL create table llx_c_civilite
); (
rowid integer PRIMARY KEY,
"civilite" varchar(50),
"active" tinyint DEFAULT 1 NOT NULL
);

View File

@@ -0,0 +1,32 @@
-- Generated from dolibarr_mysql2pgsql
-- (c) 2004, PostgreSQL Inc.
-- (c) 2005, Laurent Destailleur.
-- ========================================================================
-- Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
--
-- $Id$
-- $Source$
--
-- 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.
--
-- ========================================================================
create table llx_c_currencies
(
"label" varchar(64),
"active" tinyint DEFAULT 1 NOT NULL
);

View File

@@ -1,36 +1,43 @@
-- ======================================================================== -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org> -- (c) 2004, PostgreSQL Inc.
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be> -- (c) 2005, Laurent Destailleur.
--
-- 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 -- Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- the Free Software Foundation; either version 2 of the License, or -- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
-- (at your option) any later version. --
-- -- $Id$
-- This program is distributed in the hope that it will be useful, -- $Source$
-- but WITHOUT ANY WARRANTY; without even the implied warranty of --
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- This program is free software; you can redistribute it and/or modify
-- GNU General Public License for more details. -- it under the terms of the GNU General Public License as published by
-- -- the Free Software Foundation; either version 2 of the License, or
-- You should have received a copy of the GNU General Public License -- (at your option) any later version.
-- along with this program; if not, write to the Free Software --
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -- This program is distributed in the hope that it will be useful,
-- -- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- $Id$ -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- $Source$ -- 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
create table llx_c_departements -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
( --
rowid serial PRIMARY KEY, -- ========================================================================
code_departement varchar(6) NOT NULL,
fk_region integer,
cheflieu varchar(7), create table llx_c_departements
tncc integer, (
ncc varchar(50), rowid SERIAL PRIMARY KEY,
nom varchar(50), "code_departement" varchar(6) NOT NULL,
active smallint DEFAULT 1 NOT NULL "fk_region" integer,
); "cheflieu" varchar(7),
"tncc" integer,
CREATE INDEX llx_c_departements_fk_region ON llx_c_departements(fk_region); "ncc" varchar(50),
"nom" varchar(50),
"active" tinyint DEFAULT 1 NOT NULL,
key (fk_region)
);

View File

@@ -1 +1,34 @@
-- ======================================================================== -- Generated from dolibarr_mysql2pgsql
-- (c) 2004, PostgreSQL Inc.
-- (c) 2005, Laurent Destailleur.
-- ========================================================================
-- Copyright (C) 2001-2002,2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
--
-- $Id$
-- $Source$
--
-- 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.
--
-- ========================================================================
create table llx_c_effectif
(
id integer PRIMARY KEY,
"libelle" varchar(30),
"active" tinyint DEFAULT 1 NOT NULL
);

View File

@@ -1,32 +1,36 @@
-- ======================================================================== -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org> -- (c) 2004, PostgreSQL Inc.
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be> -- (c) 2005, Laurent Destailleur.
--
-- 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 -- Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- the Free Software Foundation; either version 2 of the License, or -- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
-- (at your option) any later version. --
-- -- This program is free software; you can redistribute it and/or modify
-- This program is distributed in the hope that it will be useful, -- it under the terms of the GNU General Public License as published by
-- but WITHOUT ANY WARRANTY; without even the implied warranty of -- the Free Software Foundation; either version 2 of the License, or
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- (at your option) any later version.
-- GNU General Public License for more details. --
-- -- This program is distributed in the hope that it will be useful,
-- You should have received a copy of the GNU General Public License -- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- along with this program; if not, write to the Free Software -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -- GNU General Public License for more details.
-- --
-- $Id$ -- You should have received a copy of the GNU General Public License
-- $Source$ -- along with this program; if not, write to the Free Software
-- -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-- ======================================================================== --
-- $Id$
create table llx_c_forme_juridique -- $Source$
( --
rowid serial PRIMARY KEY, -- ========================================================================
code varchar(12) UNIQUE NOT NULL,
fk_pays integer NOT NULL,
libelle varchar(255), create table llx_c_forme_juridique
active smallint DEFAULT 1 NOT NULL (
); rowid SERIAL PRIMARY KEY,
"fk_pays" integer NOT NULL,
"libelle" varchar(255),
"active" tinyint DEFAULT 1 NOT NULL
);

View File

@@ -0,0 +1,35 @@
-- Generated from dolibarr_mysql2pgsql
-- (c) 2004, PostgreSQL Inc.
-- (c) 2005, Laurent Destailleur.
-- ========================================================================
-- Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
--
-- $Id$
-- $Source$
--
-- 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.
--
-- ========================================================================
create table llx_c_methode_commande_fournisseur
(
rowid SERIAL PRIMARY KEY,
"code" varchar(30),
"libelle" varchar(30),
"active" tinyint default 1 NOT NULL
);

View File

@@ -1,42 +1,43 @@
-- ======================================================================== -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org> -- (c) 2004, PostgreSQL Inc.
-- Copyright (C) 2002-2003 <20>ric Seigne <erics@rycks.com> -- (c) 2005, Laurent Destailleur.
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
-- -- ========================================================================
-- This program is free software; you can redistribute it and/or modify -- Copyright (C) 2001-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- it under the terms of the GNU General Public License as published by -- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
-- the Free Software Foundation; either version 2 of the License, or --
-- (at your option) any later version. -- 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 distributed in the hope that it will be useful, -- the Free Software Foundation; either version 2 of the License, or
-- but WITHOUT ANY WARRANTY; without even the implied warranty of -- (at your option) any later version.
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --
-- GNU General Public License for more details. -- This program is distributed in the hope that it will be useful,
-- -- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- You should have received a copy of the GNU General Public License -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- along with this program; if not, write to the Free Software -- GNU General Public License for more details.
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --
-- -- You should have received a copy of the GNU General Public License
-- $Id$ -- along with this program; if not, write to the Free Software
-- $Source$ -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-- --
-- ======================================================================== -- $Id$
-- $Source$
-- --
-- Type : -- ========================================================================
-- --
-- 0 : entr<74>e d'argent -- Type :
-- 1 : sortie d'argent --
-- 2 : entr<74>e ou sortie d'argent -- 0 : entr<74>e d'argent
-- 1 : sortie d'argent
create table llx_c_paiement -- 2 : entr<74>e ou sortie d'argent
(
id SERIAL PRIMARY KEY, create table llx_c_paiement
code varchar(6), (
libelle varchar(30), id integer PRIMARY KEY,
type smallint, "libelle" varchar(30),
active smallint DEFAULT 1 not null "type" smallint,
); "active" tinyint DEFAULT 1 NOT NULL
);

View File

@@ -1,31 +1,35 @@
-- ======================================================================== -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be> -- (c) 2004, PostgreSQL Inc.
-- -- (c) 2005, Laurent Destailleur.
-- 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 -- Copyright (C) 2001-2002,2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- (at your option) any later version. -- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
-- --
-- This program is distributed in the hope that it will be useful, -- $Id$
-- but WITHOUT ANY WARRANTY; without even the implied warranty of -- $Source$
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --
-- GNU General Public License for more details. -- 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
-- You should have received a copy of the GNU General Public License -- the Free Software Foundation; either version 2 of the License, or
-- along with this program; if not, write to the Free Software -- (at your option) any later version.
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --
-- -- This program is distributed in the hope that it will be useful,
-- $Id$ -- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- $Source$ -- 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
create table llx_c_pays -- along with this program; if not, write to the Free Software
( -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
rowid SERIAL PRIMARY KEY, --
code varchar(6) UNIQUE NOT NULL, -- ========================================================================
libelle varchar(25) NOT NULL,
active smallint DEFAULT 1 NOT NULL create table llx_c_pays
); (
rowid integer PRIMARY KEY,
"libelle" varchar(25) NOT NULL,
"active" tinyint DEFAULT 1 NOT NULL
);

View File

@@ -1,30 +1,34 @@
-- =================================================================== -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be> -- (c) 2004, PostgreSQL Inc.
-- -- (c) 2005, Laurent Destailleur.
-- 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 -- Copyright (C) 2001-2002,2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- (at your option) any later version. -- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
-- --
-- This program is distributed in the hope that it will be useful, -- $Id$
-- but WITHOUT ANY WARRANTY; without even the implied warranty of -- $Source$
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --
-- GNU General Public License for more details. -- 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
-- You should have received a copy of the GNU General Public License -- the Free Software Foundation; either version 2 of the License, or
-- along with this program; if not, write to the Free Software -- (at your option) any later version.
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --
-- -- This program is distributed in the hope that it will be useful,
-- $Id$ -- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- $Source$ -- 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
create table llx_c_propalst -- along with this program; if not, write to the Free Software
( -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
id SERIAL PRIMARY KEY, --
code varchar(12) UNIQUE NOT NULL, -- ===================================================================
label varchar(30),
active integer DEFAULT 1 NOT NULL create table llx_c_propalst
); (
id smallint PRIMARY KEY,
"label" varchar(30),
"active" tinyint DEFAULT 1 NOT NULL
);

View File

@@ -0,0 +1,28 @@
-- Generated from dolibarr_mysql2pgsql
-- (c) 2004, PostgreSQL Inc.
-- (c) 2005, Laurent Destailleur.
-- ========================================================================
-- Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
--
-- $Id$
-- $Source$
--
-- 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.
--
-- ========================================================================
ALTER TABLE llx_c_regions ADD CONSTRAINT c_regions_fk_pays FOREIGN KEY (fk_pays) REFERENCES llx_c_pays (rowid);

View File

@@ -1,34 +1,37 @@
-- ======================================================================== -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2001-2002,2004 Rodolphe Quiedeville <rodolphe@quiedeville.org> -- (c) 2004, PostgreSQL Inc.
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be> -- (c) 2005, Laurent Destailleur.
--
-- 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 -- Copyright (C) 2001-2002,2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- the Free Software Foundation; either version 2 of the License, or -- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
-- (at your option) any later version. --
-- -- $Id$
-- This program is distributed in the hope that it will be useful, -- $Source$
-- but WITHOUT ANY WARRANTY; without even the implied warranty of --
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- This program is free software; you can redistribute it and/or modify
-- GNU General Public License for more details. -- it under the terms of the GNU General Public License as published by
-- -- the Free Software Foundation; either version 2 of the License, or
-- You should have received a copy of the GNU General Public License -- (at your option) any later version.
-- along with this program; if not, write to the Free Software --
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -- This program is distributed in the hope that it will be useful,
-- -- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- $Id$ -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- $Source$ -- 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
create table llx_c_regions -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
( --
rowid serial PRIMARY KEY, -- ========================================================================
code_region integer UNIQUE NOT NULL,
fk_pays integer NOT NULL, create table llx_c_regions
cheflieu varchar(7), (
tncc integer, rowid SERIAL PRIMARY KEY,
nom varchar(50), "fk_pays" integer NOT NULL,
active smallint DEFAULT 1 NOT NULL "cheflieu" varchar(7),
); "tncc" integer,
"nom" varchar(50),
"active" tinyint DEFAULT 1 NOT NULL
);

View File

@@ -1,30 +1,34 @@
-- ======================================================================== -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be> -- (c) 2004, PostgreSQL Inc.
-- -- (c) 2005, Laurent Destailleur.
-- 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 -- Copyright (C) 2001-2002,2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- (at your option) any later version. -- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
-- --
-- This program is distributed in the hope that it will be useful, -- $Id$
-- but WITHOUT ANY WARRANTY; without even the implied warranty of -- $Source$
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --
-- GNU General Public License for more details. -- 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
-- You should have received a copy of the GNU General Public License -- the Free Software Foundation; either version 2 of the License, or
-- along with this program; if not, write to the Free Software -- (at your option) any later version.
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --
-- -- This program is distributed in the hope that it will be useful,
-- $Id$ -- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- $Source$ -- 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
create table llx_c_stcomm -- along with this program; if not, write to the Free Software
( -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
id SERIAL PRIMARY KEY, --
code varchar(12) UNIQUE NOT NULL, -- ========================================================================
libelle varchar(30),
active smallint DEFAULT 1 NOT NULL create table llx_c_stcomm
); (
id integer PRIMARY KEY,
"libelle" varchar(30),
"active" tinyint default 1 NOT NULL
);

View File

@@ -1,29 +1,33 @@
-- ======================================================================== -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be> -- (c) 2004, PostgreSQL Inc.
-- -- (c) 2005, Laurent Destailleur.
-- 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 -- Copyright (C) 2001-2002,2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- (at your option) any later version. -- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
-- --
-- This program is distributed in the hope that it will be useful, -- This program is free software; you can redistribute it and/or modify
-- but WITHOUT ANY WARRANTY; without even the implied warranty of -- it under the terms of the GNU General Public License as published by
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- the Free Software Foundation; either version 2 of the License, or
-- GNU General Public License for more details. -- (at your option) any later version.
-- --
-- You should have received a copy of the GNU General Public License -- This program is distributed in the hope that it will be useful,
-- along with this program; if not, write to the Free Software -- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- -- GNU General Public License for more details.
-- $Id$ --
-- $Source$ -- 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.
--
create table llx_c_typent -- $Id$
( -- $Source$
id SERIAL PRIMARY KEY, --
code varchar(12) UNIQUE NOT NULL, -- ========================================================================
libelle varchar(30),
active smallint DEFAULT 1 NOT NULL create table llx_c_typent
); (
id integer PRIMARY KEY,
"libelle" varchar(30),
"active" tinyint DEFAULT 1 NOT NULL
);

View File

@@ -1,34 +1,40 @@
-- ======================================================================== -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org> -- (c) 2004, PostgreSQL Inc.
-- Copyright (C) 2002-2003 <20>ric Seigne <erics@rycks.com> -- (c) 2005, Laurent Destailleur.
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
-- -- ========================================================================
-- This program is free software; you can redistribute it and/or modify -- Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- 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$ -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-- $Source$ --
-- -- $Id$
-- ======================================================================== -- $Source$
--
create table llx_chargesociales -- ========================================================================
(
rowid SERIAL PRIMARY KEY, create table llx_chargesociales
libelle varchar(80), (
deductible smallint DEFAULT 0 NOT NULL, rowid SERIAL PRIMARY KEY,
active smallint DEFAULT 0 NOT NULL "date_ech" datetime, -- date d'echeance
); "date_pai" datetime, -- date de paiements
"libelle" varchar(80),
"fk_type" integer,
"amount" real default 0 NOT NULL,
"paye" smallint default 0 NOT NULL,
"periode" date
);

View File

@@ -1,33 +1,35 @@
-- =================================================================== -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org> -- (c) 2004, PostgreSQL Inc.
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be> -- (c) 2005, Laurent Destailleur.
--
-- 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 -- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- the Free Software Foundation; either version 2 of the License, or --
-- (at your option) any later version. -- 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 distributed in the hope that it will be useful, -- the Free Software Foundation; either version 2 of the License, or
-- but WITHOUT ANY WARRANTY; without even the implied warranty of -- (at your option) any later version.
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --
-- GNU General Public License for more details. -- This program is distributed in the hope that it will be useful,
-- -- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- You should have received a copy of the GNU General Public License -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- along with this program; if not, write to the Free Software -- GNU General Public License for more details.
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --
-- -- You should have received a copy of the GNU General Public License
-- $Id$ -- along with this program; if not, write to the Free Software
-- $Source$ -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-- --
-- =================================================================== -- $Id$
-- $Source$
create table llx_co_fa -- ===================================================================
(
rowid serial PRIMARY KEY,
fk_commande integer NOT NULL, create table llx_co_fa
fk_facture integer NOT NULL (
); rowid SERIAL PRIMARY KEY,
"fk_commande" integer NOT NULL,
CREATE INDEX llx_co_fa_fk_commande ON llx_co_fa(fk_commande); "fk_facture" integer NOT NULL
);
CREATE INDEX llx_co_fa_fk_facture ON llx_co_fa(fk_facture);
CREATE INDEX llx_co_fa_fk_commande ON llx_co_fa (fk_commande);
CREATE INDEX llx_co_fa_fk_facture ON llx_co_fa (fk_facture);

View File

@@ -1,29 +1,31 @@
-- =================================================================== -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org> -- (c) 2004, PostgreSQL Inc.
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be> -- (c) 2005, Laurent Destailleur.
--
-- 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 -- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- the Free Software Foundation; either version 2 of the License, or --
-- (at your option) any later version. -- 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 distributed in the hope that it will be useful, -- the Free Software Foundation; either version 2 of the License, or
-- but WITHOUT ANY WARRANTY; without even the implied warranty of -- (at your option) any later version.
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --
-- GNU General Public License for more details. -- This program is distributed in the hope that it will be useful,
-- -- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- You should have received a copy of the GNU General Public License -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- along with this program; if not, write to the Free Software -- GNU General Public License for more details.
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --
-- -- You should have received a copy of the GNU General Public License
-- $Id$ -- along with this program; if not, write to the Free Software
-- $Source$ -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-- --
-- =================================================================== -- $Id$
-- $Source$
create table llx_co_pr -- ===================================================================
(
rowid serial PRIMARY KEY, create table llx_co_pr
fk_commande integer, (
fk_propale integer rowid SERIAL PRIMARY KEY,
); "fk_commande" integer,
"fk_propale" integer
);

View File

@@ -1,53 +1,53 @@
-- =================================================================== -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org> -- (c) 2004, PostgreSQL Inc.
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be> -- (c) 2005, Laurent Destailleur.
--
-- 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 -- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- the Free Software Foundation; either version 2 of the License, or --
-- (at your option) any later version. -- 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 distributed in the hope that it will be useful, -- the Free Software Foundation; either version 2 of the License, or
-- but WITHOUT ANY WARRANTY; without even the implied warranty of -- (at your option) any later version.
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --
-- GNU General Public License for more details. -- This program is distributed in the hope that it will be useful,
-- -- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- You should have received a copy of the GNU General Public License -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- along with this program; if not, write to the Free Software -- GNU General Public License for more details.
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --
-- -- You should have received a copy of the GNU General Public License
-- $Id$ -- along with this program; if not, write to the Free Software
-- $Source$ -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-- --
-- =================================================================== -- $Id$
-- $Source$
create table llx_commande --
( -- ===================================================================
rowid serial PRIMARY KEY,
tms timestamp, create table llx_commande
fk_soc integer, (
fk_soc_contact integer, rowid SERIAL PRIMARY KEY,
fk_projet integer DEFAULT 0, -- projet auquel est rattache la commande "tms" timestamp,
ref varchar(30) NOT NULL, -- propal number "fk_soc" integer,
date_creation timestamp without time zone, -- date de creation "fk_soc_contact" integer,
date_valid timestamp without time zone, -- date de validation "fk_projet" integer DEFAULT 0, -- projet auquel est rattache la commande
date_cloture timestamp without time zone, -- date de cloture "ref" varchar(30) NOT NULL, -- propal number
date_commande date, -- date de la commande "date_creation" datetime, -- date de creation
fk_user_author integer, -- createur de la commande "date_valid" datetime, -- date de validation
fk_user_valid integer, -- valideur de la commande "date_cloture" datetime, -- date de cloture
fk_user_cloture integer, -- cloture de la propale signee ou non signee "date_commande" date, -- date de la commande
source smallint NOT NULL, "fk_user_author" integer, -- createur de la commande
fk_statut smallint default 0, "fk_user_valid" integer, -- valideur de la commande
amount_ht real default 0, "fk_user_cloture" integer, -- cloture de la propale signee ou non signee
remise_percent real default 0, "source" smallint NOT NULL,
remise real default 0, "fk_statut" smallint default 0,
tva real default 0, "amount_ht" real default 0,
total_ht real default 0, "remise_percent" real default 0,
total_ttc real default 0, "remise" real default 0,
note text, "tva" real default 0,
model_pdf varchar(50), "total_ht" real default 0,
facture smallint default 0, "total_ttc" real default 0,
"note" text,
UNIQUE (ref) "model_pdf" varchar(50),
); "facture" tinyint default 0,
4294967294);

View File

@@ -0,0 +1,54 @@
-- Generated from dolibarr_mysql2pgsql
-- (c) 2004, PostgreSQL Inc.
-- (c) 2005, Laurent Destailleur.
-- ===================================================================
-- Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 2 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
--
-- $Id$
-- $Source$
--
-- ===================================================================
create table llx_commande_fournisseur
(
rowid SERIAL PRIMARY KEY,
"tms" timestamp,
"fk_soc" integer,
"fk_soc_contact" integer,
"fk_projet" integer DEFAULT 0, -- projet auquel est rattache la commande
"ref" varchar(30) NOT NULL, -- propal number
"date_creation" datetime, -- date de creation
"date_valid" datetime, -- date de validation
"date_cloture" datetime, -- date de cloture
"date_commande" date, -- date de la commande
"fk_methode_commande" integer default 0,
"fk_user_author" integer, -- createur de la commande
"fk_user_valid" integer, -- valideur de la commande
"fk_user_cloture" integer, -- cloture de la propale signee ou non signee
"source" smallint NOT NULL,
"fk_statut" smallint default 0,
"amount_ht" real default 0,
"remise_percent" real default 0,
"remise" real default 0,
"tva" real default 0,
"total_ht" real default 0,
"total_ttc" real default 0,
"note" text,
"model_pdf" varchar(50),
4294967294);

View File

@@ -0,0 +1,35 @@
-- Generated from dolibarr_mysql2pgsql
-- (c) 2004, PostgreSQL Inc.
-- (c) 2005, Laurent Destailleur.
-- ===================================================================
-- Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 2 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
--
-- $Id$
-- $Source$
--
-- ===================================================================
create table llx_commande_fournisseur_log
(
rowid SERIAL PRIMARY KEY,
"tms" timestamp,
"datelog" datetime,
"fk_commande" integer NOT NULL,
"fk_statut" smallint NOT NULL,
"fk_user" integer NOT NULL
);

View File

@@ -0,0 +1,40 @@
-- Generated from dolibarr_mysql2pgsql
-- (c) 2004, PostgreSQL Inc.
-- (c) 2005, Laurent Destailleur.
-- ===================================================================
-- Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 2 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
--
-- $Id$
-- $Source$
-- ===================================================================
create table llx_commande_fournisseurdet
(
rowid SERIAL PRIMARY KEY,
"fk_commande" integer,
"fk_product" integer,
"ref" varchar(50),
"label" varchar(255),
"description" text,
"tva_tx" real DEFAULT 19.6, -- taux tva
"qty" real, -- quantit<69>
"remise_percent" real DEFAULT 0, -- pourcentage de remise
"remise" real DEFAULT 0, -- montant de la remise
"subprice" real, -- prix avant remise
"price" real -- prix final
);

View File

@@ -1,37 +1,39 @@
-- =================================================================== -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org> -- (c) 2004, PostgreSQL Inc.
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be> -- (c) 2005, Laurent Destailleur.
--
-- 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 -- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- the Free Software Foundation; either version 2 of the License, or --
-- (at your option) any later version. -- 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 distributed in the hope that it will be useful, -- the Free Software Foundation; either version 2 of the License, or
-- but WITHOUT ANY WARRANTY; without even the implied warranty of -- (at your option) any later version.
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --
-- GNU General Public License for more details. -- This program is distributed in the hope that it will be useful,
-- -- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- You should have received a copy of the GNU General Public License -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- along with this program; if not, write to the Free Software -- GNU General Public License for more details.
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --
-- -- You should have received a copy of the GNU General Public License
-- $Id$ -- along with this program; if not, write to the Free Software
-- $Source$ -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-- --
-- =================================================================== -- $Id$
-- $Source$
create table llx_commandedet -- ===================================================================
(
rowid serial PRIMARY KEY, create table llx_commandedet
fk_commande integer, (
fk_product integer, rowid SERIAL PRIMARY KEY,
label varchar(255), "fk_commande" integer,
description text, "fk_product" integer,
tva_tx real DEFAULT 19.6, -- taux tva "label" varchar(255),
qty real, -- quantit<69> "description" text,
remise_percent real DEFAULT 0, -- pourcentage de remise "tva_tx" real DEFAULT 19.6, -- taux tva
remise real DEFAULT 0, -- montant de la remise "qty" real, -- quantit<69>
subprice real, -- prix avant remise "remise_percent" real DEFAULT 0, -- pourcentage de remise
price real -- prix final "remise" real DEFAULT 0, -- montant de la remise
); "subprice" real, -- prix avant remise
"price" real -- prix final
);

View File

@@ -1,39 +1,40 @@
-- =================================================================== -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2000-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org> -- (c) 2004, PostgreSQL Inc.
-- Copyright (C) 2002-2003 <20>ric Seigne <erics@rycks.com> -- (c) 2005, Laurent Destailleur.
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
-- -- ===================================================================
-- This program is free software; you can redistribute it and/or modify -- Copyright (C) 2000-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- it under the terms of the GNU General Public License as published by --
-- the Free Software Foundation; either version 2 of the License, or -- $Id$
-- (at your option) any later version. -- $Source$
-- --
-- This program is distributed in the hope that it will be useful, -- This program is free software; you can redistribute it and/or modify
-- but WITHOUT ANY WARRANTY; without even the implied warranty of -- it under the terms of the GNU General Public License as published by
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- the Free Software Foundation; either version 2 of the License, or
-- GNU General Public License for more details. -- (at your option) any later version.
-- --
-- You should have received a copy of the GNU General Public License -- This program is distributed in the hope that it will be useful,
-- along with this program; if not, write to the Free Software -- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- -- GNU General Public License for more details.
-- $Id$ --
-- $Source$ -- 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.
--
-- ===================================================================
create table llx_compta
(
rowid SERIAL PRIMARY KEY, create table llx_compta
datec timestamp without time zone, (
datev date, -- date de valeur rowid SERIAL PRIMARY KEY,
amount real DEFAULT 0 NOT NULL, "datec" datetime,
label varchar(255), "datev" date, -- date de valeur
fk_compta_account integer, "amount" real DEFAULT 0 NOT NULL ,
fk_user_author integer, "label" varchar(255),
fk_user_valid integer, "fk_compta_account" integer,
valid int default 0, "fk_user_author" integer,
note text "fk_user_valid" integer,
"valid" tinyint DEFAULT 0,
); "note" text
);

View File

@@ -1,35 +1,36 @@
-- =================================================================== -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2000-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org> -- (c) 2004, PostgreSQL Inc.
-- Copyright (C) 2002-2003 <20>ric Seigne <erics@rycks.com> -- (c) 2005, Laurent Destailleur.
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
-- -- ===================================================================
-- This program is free software; you can redistribute it and/or modify -- Copyright (C) 2000-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- it under the terms of the GNU General Public License as published by --
-- the Free Software Foundation; either version 2 of the License, or -- $Id$
-- (at your option) any later version. -- $Source$
-- --
-- This program is distributed in the hope that it will be useful, -- This program is free software; you can redistribute it and/or modify
-- but WITHOUT ANY WARRANTY; without even the implied warranty of -- it under the terms of the GNU General Public License as published by
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- the Free Software Foundation; either version 2 of the License, or
-- GNU General Public License for more details. -- (at your option) any later version.
-- --
-- You should have received a copy of the GNU General Public License -- This program is distributed in the hope that it will be useful,
-- along with this program; if not, write to the Free Software -- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- -- GNU General Public License for more details.
-- $Id$ --
-- $Source$ -- 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.
--
-- ===================================================================
create table llx_compta_account
(
rowid SERIAL PRIMARY KEY, create table llx_compta_account
datec timestamp without time zone, (
number varchar(12), rowid SERIAL PRIMARY KEY,
label varchar(255), "datec" datetime,
fk_user_author integer, "number" varchar(12),
note text "label" varchar(255),
"fk_user_author" integer,
); "note" text
);

View File

@@ -0,0 +1,36 @@
-- Generated from dolibarr_mysql2pgsql
-- (c) 2004, PostgreSQL Inc.
-- (c) 2005, Laurent Destailleur.
-- ===================================================================
-- Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 2 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
--
-- $Id$
-- $Source$
--
-- ===================================================================
create table llx_compta_compte_generaux
(
rowid SERIAL PRIMARY KEY,
"date_creation" datetime,
"numero" varchar(50),
"intitule" varchar(255),
"fk_user_author" integer,
"note" text
);

View File

@@ -1,35 +1,38 @@
-- ============================================================================ -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org> -- (c) 2004, PostgreSQL Inc.
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be> -- (c) 2005, Laurent Destailleur.
--
-- 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 -- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- the Free Software Foundation; either version 2 of the License, or --
-- (at your option) any later version. -- 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 distributed in the hope that it will be useful, -- the Free Software Foundation; either version 2 of the License, or
-- but WITHOUT ANY WARRANTY; without even the implied warranty of -- (at your option) any later version.
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --
-- GNU General Public License for more details. -- This program is distributed in the hope that it will be useful,
-- -- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- You should have received a copy of the GNU General Public License -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- along with this program; if not, write to the Free Software -- GNU General Public License for more details.
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --
-- -- You should have received a copy of the GNU General Public License
-- $Id$ -- along with this program; if not, write to the Free Software
-- $Source$ -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-- --
-- ============================================================================ -- $Id$
-- $Source$
create table llx_concert --
( -- ============================================================================
rowid SERIAL PRIMARY KEY,
tms timestamp, create table llx_concert
date_concert timestamp without time zone NOT NULL, (
description text, rowid SERIAL PRIMARY KEY,
collectif smallint DEFAULT 0 NOT NULL, "tms" timestamp,
fk_groupart integer, "date_concert" datetime,
fk_lieu_concert integer, "description" text,
fk_user_author integer "collectif" tinyint DEFAULT 0 NOT NULL,
); "fk_groupart" integer,
"fk_lieu_concert" integer,
"fk_user_author" integer
);

View File

@@ -1,33 +1,37 @@
-- ============================================================================ -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2002-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org> -- (c) 2004, PostgreSQL Inc.
-- Copyright (C) 2004 Benoit mortier <benoit.mortier@opensides.be> -- (c) 2005, Laurent Destailleur.
--
-- 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 -- Copyright (C) 2002-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- the Free Software Foundation; either version 2 of the License, or --
-- (at your option) any later version. -- 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 distributed in the hope that it will be useful, -- the Free Software Foundation; either version 2 of the License, or
-- but WITHOUT ANY WARRANTY; without even the implied warranty of -- (at your option) any later version.
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --
-- GNU General Public License for more details. -- This program is distributed in the hope that it will be useful,
-- -- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- You should have received a copy of the GNU General Public License -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- along with this program; if not, write to the Free Software -- GNU General Public License for more details.
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --
-- -- You should have received a copy of the GNU General Public License
-- $Id$ -- along with this program; if not, write to the Free Software
-- $Source$ -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-- --
-- ============================================================================ -- $Id$
-- $Source$
create table llx_cond_reglement --
( -- ============================================================================
rowid SERIAL PRIMARY KEY,
sortorder smallint, create table llx_cond_reglement
actif smallint DEFAULT 1, (
libelle varchar(255), rowid integer PRIMARY KEY,
libelle_facture text, "code" varchar(16),
fdm smallint, -- reglement fin de mois "sortorder" smallint,
nbjour smallint "actif" tinyint DEFAULT 1,
); "libelle" varchar(255),
"libelle_facture" text,
"fdm" tinyint, -- reglement fin de mois
"nbjour" smallint
);

View File

@@ -1,38 +1,40 @@
-- ============================================================================ -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org> -- (c) 2004, PostgreSQL Inc.
-- Copyright (C) 2003 Jean-Louis Bergamo <jlb@j1b.org> -- (c) 2005, Laurent Destailleur.
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
-- -- ============================================================================
-- This program is free software; you can redistribute it and/or modify -- Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- it under the terms of the GNU General Public License as published by -- Copyright (C) 2003 Jean-Louis Bergamo <jlb@j1b.org>
-- the Free Software Foundation; either version 2 of the License, or --
-- (at your option) any later version. -- 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 distributed in the hope that it will be useful, -- the Free Software Foundation; either version 2 of the License, or
-- but WITHOUT ANY WARRANTY; without even the implied warranty of -- (at your option) any later version.
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --
-- GNU General Public License for more details. -- This program is distributed in the hope that it will be useful,
-- -- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- You should have received a copy of the GNU General Public License -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- along with this program; if not, write to the Free Software -- GNU General Public License for more details.
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --
-- -- You should have received a copy of the GNU General Public License
-- $Id$ -- along with this program; if not, write to the Free Software
-- $Source$ -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-- --
-- =========================================================================== -- $Id$
-- -- $Source$
-- Definitions des constantes utilis<69>s comme parametres de configuration --
-- -- ===========================================================================
--
create table llx_const -- Definitions des constantes utilis<69>s comme parametres de configuration
( --
rowid SERIAL PRIMARY KEY,
name varchar(255),
value text, -- max 65535 caracteres create table llx_const
type CHAR(6) CHECK (type IN ('yesno','texte','chaine')), (
visible smallint DEFAULT 1 NOT NULL, rowid SERIAL PRIMARY KEY,
note text "name" varchar(255),
); "value" text, -- max 65535 caracteres
"type" varchar(6) CHECK (type IN ('yesno','texte','chaine')) ,
CREATE UNIQUE INDEX llx_const_idx ON llx_const (name); "visible" tinyint DEFAULT 1 NOT NULL,
"note" text
);

View File

@@ -1,33 +1,35 @@
-- ============================================================================ -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2001-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org> -- (c) 2004, PostgreSQL Inc.
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be> -- (c) 2005, Laurent Destailleur.
--
-- 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 -- Copyright (C) 2001-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- the Free Software Foundation; either version 2 of the License, or --
-- (at your option) any later version. -- 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 distributed in the hope that it will be useful, -- the Free Software Foundation; either version 2 of the License, or
-- but WITHOUT ANY WARRANTY; without even the implied warranty of -- (at your option) any later version.
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --
-- GNU General Public License for more details. -- This program is distributed in the hope that it will be useful,
-- -- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- You should have received a copy of the GNU General Public License -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- along with this program; if not, write to the Free Software -- GNU General Public License for more details.
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --
-- -- You should have received a copy of the GNU General Public License
-- $Id$ -- along with this program; if not, write to the Free Software
-- $Source$ -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-- --
-- Contact pour la facturation client -- $Id$
-- -- $Source$
-- ============================================================================ --
-- Contact pour la facturation client
create table llx_contact_facture --
( -- ============================================================================
idp serial PRIMARY KEY,
fk_soc integer NOT NULL,
fk_contact integer NOT NULL, -- point sur llx_socpeople create table llx_contact_facture
(
UNIQUE (fk_soc, fk_contact) idp SERIAL PRIMARY KEY,
); "fk_soc" integer NOT NULL,
"fk_contact" integer NOT NULL, -- point sur llx_socpeople
);

View File

@@ -0,0 +1,39 @@
-- Generated from dolibarr_mysql2pgsql
-- (c) 2004, PostgreSQL Inc.
-- (c) 2005, Laurent Destailleur.
-- ============================================================================
-- Copyright (C) 2002-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- Copyright (C) 2004 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$
-- $Source$
--
-- ============================================================================
--
--
ALTER TABLE llx_contrat ADD INDEX (fk_soc);
ALTER TABLE llx_contrat ADD INDEX (fk_commercial_signature);
ALTER TABLE llx_contrat ADD INDEX (fk_commercial_suivi);
ALTER TABLE llx_contrat ADD INDEX (fk_user_author);
--
--
ALTER TABLE llx_contrat ADD FOREIGN KEY (fk_soc) REFERENCES llx_societe (idp);
ALTER TABLE llx_contrat ADD FOREIGN KEY (fk_commercial_signature) REFERENCES llx_user (rowid);
ALTER TABLE llx_contrat ADD FOREIGN KEY (fk_commercial_suivi) REFERENCES llx_user (rowid);
ALTER TABLE llx_contrat ADD FOREIGN KEY (fk_user_author) REFERENCES llx_user (rowid);

View File

@@ -1,40 +1,47 @@
-- ============================================================================ -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2002-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org> -- (c) 2004, PostgreSQL Inc.
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be> -- (c) 2005, Laurent Destailleur.
--
-- 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 -- Copyright (C) 2002-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- the Free Software Foundation; either version 2 of the License, or -- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
-- (at your option) any later version. --
-- -- This program is free software; you can redistribute it and/or modify
-- This program is distributed in the hope that it will be useful, -- it under the terms of the GNU General Public License as published by
-- but WITHOUT ANY WARRANTY; without even the implied warranty of -- the Free Software Foundation; either version 2 of the License, or
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- (at your option) any later version.
-- GNU General Public License for more details. --
-- -- This program is distributed in the hope that it will be useful,
-- You should have received a copy of the GNU General Public License -- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- along with this program; if not, write to the Free Software -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -- GNU General Public License for more details.
-- --
-- $Id$ -- You should have received a copy of the GNU General Public License
-- $Source$ -- along with this program; if not, write to the Free Software
-- -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-- ============================================================================ --
-- $Id$
create table llx_contrat -- $Source$
( --
rowid SERIAL PRIMARY KEY, -- ============================================================================
tms timestamp,
enservice smallint DEFAULT 0,
mise_en_service timestamp without time zone,
fin_validite timestamp without time zone, create table llx_contrat
date_cloture timestamp without time zone, (
fk_soc integer NOT NULL, rowid SERIAL PRIMARY KEY,
fk_product integer NOT NULL, "tms" timestamp,
fk_facture integer NOT NULL DEFAULT 0, "datec" datetime, -- date de creation de l'enregistrement
fk_facturedet integer NOT NULL DEFAULT 0, "date_contrat" datetime,
fk_user_author integer NOT NULL, "statut" smallint DEFAULT 0,
fk_user_mise_en_service integer, "mise_en_service" datetime,
fk_user_cloture integer "fin_validite" datetime,
); "date_cloture" datetime,
"fk_soc" integer NOT NULL,
"fk_commercial_signature" integer NOT NULL,
"fk_commercial_suivi" integer NOT NULL,
"fk_user_author" integer NOT NULL default 0,
"fk_user_mise_en_service" integer,
"fk_user_cloture" integer
);

View File

@@ -0,0 +1,33 @@
-- Generated from dolibarr_mysql2pgsql
-- (c) 2004, PostgreSQL Inc.
-- (c) 2005, Laurent Destailleur.
-- ============================================================================
-- Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 2 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
--
-- $Id$
-- $Source$
--
-- ============================================================================
--
--
ALTER TABLE llx_contratdet ADD INDEX (fk_contrat);
ALTER TABLE llx_contratdet ADD INDEX (fk_product);
--
--
ALTER TABLE llx_contratdet ADD FOREIGN KEY (fk_contrat) REFERENCES llx_contrat (rowid);
ALTER TABLE llx_contratdet ADD FOREIGN KEY (fk_product) REFERENCES llx_product (rowid);

View File

@@ -0,0 +1,58 @@
-- Generated from dolibarr_mysql2pgsql
-- (c) 2004, PostgreSQL Inc.
-- (c) 2005, Laurent Destailleur.
-- ============================================================================
-- Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 2 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
--
-- $Id$
-- $Source$
--
-- ============================================================================
create table llx_contratdet
(
rowid SERIAL PRIMARY KEY,
"tms" timestamp,
"fk_contrat" integer NOT NULL,
"fk_product" integer NOT NULL,
"statut" smallint DEFAULT 0,
"label" text, -- libell<6C> du produit
"description" text,
"date_commande" datetime,
"date_ouverture_prevue" datetime,
"date_ouverture" datetime, -- date d'ouverture du service chez le client
"date_fin_validite" datetime,
"date_cloture" datetime,
"tva_tx" real DEFAULT 19.6, -- taux tva
"qty" real, -- quantit<69>
"remise_percent" real DEFAULT 0, -- pourcentage de remise
"remise" real DEFAULT 0, -- montant de la remise
"subprice" real, -- prix avant remise
"price_ht" real, -- prix final
"fk_user_author" integer NOT NULL default 0,
"fk_user_ouverture" integer,
"fk_user_cloture" integer,
"commentaire" text
);

View File

@@ -0,0 +1,37 @@
-- Generated from dolibarr_mysql2pgsql
-- (c) 2004, PostgreSQL Inc.
-- (c) 2005, Laurent Destailleur.
-- ============================================================================
-- Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 2 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
--
-- $Id$
-- $Source$
--
-- ============================================================================
create table llx_contratdet_log
(
rowid SERIAL PRIMARY KEY,
"tms" timestamp,
"fk_contratdet" integer NOT NULL,
"date" datetime,
"statut" smallint NOT NULL,
"fk_user_author" integer NOT NULL,
"commentaire" text
);

View File

@@ -1,34 +1,36 @@
-- =================================================================== -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be> -- (c) 2004, PostgreSQL Inc.
-- -- (c) 2005, Laurent Destailleur.
-- 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 -- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- (at your option) any later version. --
-- -- This program is free software; you can redistribute it and/or modify
-- This program is distributed in the hope that it will be useful, -- it under the terms of the GNU General Public License as published by
-- but WITHOUT ANY WARRANTY; without even the implied warranty of -- the Free Software Foundation; either version 2 of the License, or
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- (at your option) any later version.
-- GNU General Public License for more details. --
-- -- This program is distributed in the hope that it will be useful,
-- You should have received a copy of the GNU General Public License -- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- along with this program; if not, write to the Free Software -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -- GNU General Public License for more details.
-- --
-- $Id$ -- You should have received a copy of the GNU General Public License
-- $Source$ -- 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$
create table llx_cotisation -- ===================================================================
(
rowid SERIAL PRIMARY KEY, create table llx_cotisation
tms timestamp, (
datec timestamp without time zone, rowid SERIAL PRIMARY KEY,
fk_adherent integer, "tms" timestamp,
dateadh timestamp without time zone, "datec" datetime,
cotisation real, "fk_adherent" integer,
fk_bank integer DEFAULT NULL, "dateadh" datetime,
note text "cotisation" real,
); "fk_bank" int4 DEFAULT NULL,
"note" text
);

View File

@@ -1,36 +1,39 @@
-- ============================================================================ -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org> -- (c) 2004, PostgreSQL Inc.
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be> -- (c) 2005, Laurent Destailleur.
--
-- 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 -- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- the Free Software Foundation; either version 2 of the License, or --
-- (at your option) any later version. -- 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 distributed in the hope that it will be useful, -- the Free Software Foundation; either version 2 of the License, or
-- but WITHOUT ANY WARRANTY; without even the implied warranty of -- (at your option) any later version.
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --
-- GNU General Public License for more details. -- This program is distributed in the hope that it will be useful,
-- -- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- You should have received a copy of the GNU General Public License -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- along with this program; if not, write to the Free Software -- GNU General Public License for more details.
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --
-- -- You should have received a copy of the GNU General Public License
-- $Id$ -- along with this program; if not, write to the Free Software
-- $Source$ -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-- --
-- ============================================================================ -- $Id$
-- $Source$
create table llx_deplacement --
( -- ============================================================================
rowid SERIAL PRIMARY KEY,
datec timestamp without time zone NOT NULL, create table llx_deplacement
tms timestamp, (
dated timestamp without time zone, rowid SERIAL PRIMARY KEY,
fk_user integer NOT NULL, "datec" datetime,
fk_user_author integer, "tms" timestamp,
type smallint NOT NULL, "dated" datetime,
km smallint, "fk_user" integer NOT NULL,
fk_soc integer, "fk_user_author" integer,
note text "type" smallint NOT NULL,
); "km" smallint,
"fk_soc" integer,
"note" text
);

View File

@@ -1,32 +1,34 @@
-- =================================================================== -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org> -- (c) 2004, PostgreSQL Inc.
-- Copyright (C) 2002-2003 <20>ric Seigne <erics@rycks.com> -- (c) 2005, Laurent Destailleur.
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
-- -- ===================================================================
-- This program is free software; you can redistribute it and/or modify -- Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- 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$ -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-- $Source$ --
-- -- $Id$
-- =================================================================== -- $Source$
--
create table llx_domain -- ===================================================================
(
rowid SERIAL PRIMARY KEY, create table llx_domain
datec timestamp without time zone, (
label varchar(255), rowid SERIAL PRIMARY KEY,
note text "datec" datetime,
); "label" varchar(255),
"note" text
);

View File

@@ -1,46 +1,49 @@
-- =================================================================== -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be> -- (c) 2004, PostgreSQL Inc.
-- -- (c) 2005, Laurent Destailleur.
-- 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 -- Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- (at your option) any later version. --
-- -- This program is free software; you can redistribute it and/or modify
-- This program is distributed in the hope that it will be useful, -- it under the terms of the GNU General Public License as published by
-- but WITHOUT ANY WARRANTY; without even the implied warranty of -- the Free Software Foundation; either version 2 of the License, or
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- (at your option) any later version.
-- GNU General Public License for more details. --
-- -- This program is distributed in the hope that it will be useful,
-- You should have received a copy of the GNU General Public License -- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- along with this program; if not, write to the Free Software -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -- GNU General Public License for more details.
-- --
-- $Id$ -- You should have received a copy of the GNU General Public License
-- $Source$ -- 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$
create table llx_don --
( -- ===================================================================
rowid SERIAL PRIMARY KEY,
tms timestamp, create table llx_don
fk_statut smallint NOT NULL DEFAULT 0,-- etat du don promesse/valid (
datec timestamp without time zone, -- date de cr<63>ation de l'enregistrement rowid SERIAL PRIMARY KEY,
datedon timestamp without time zone, -- date du don/promesse "tms" timestamp,
amount real DEFAULT 0, "fk_statut" smallint NOT NULL DEFAULT 0,-- etat du don promesse/valid
fk_paiement integer, "datec" datetime, -- date de cr<63>ation de l'enregistrement
prenom varchar(50), "datedon" datetime, -- date du don/promesse
nom varchar(50), "amount" real DEFAULT 0,
societe varchar(50), "fk_paiement" integer,
adresse text, "prenom" varchar(50),
cp varchar(30), "nom" varchar(50),
ville varchar(50), "societe" varchar(50),
pays varchar(50), "adresse" text,
email varchar(255), "cp" varchar(30),
public smallint DEFAULT 1 NOT NULL, -- le don est-il public (0,1) "ville" varchar(50),
fk_don_projet integer NOT NULL, -- projet auquel est fait le don "pays" varchar(50),
fk_user_author integer NOT NULL, "email" varchar(255),
fk_user_valid integer NOT NULL, "public" smallint DEFAULT 1 NOT NULL, -- le don est-il public (0,1)
note text "fk_don_projet" integer NOT NULL, -- projet auquel est fait le don
); "fk_user_author" integer NOT NULL,
"fk_user_valid" integer NOT NULL,
"note" text
);

View File

@@ -1,32 +1,35 @@
-- =================================================================== -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be> -- (c) 2004, PostgreSQL Inc.
-- -- (c) 2005, Laurent Destailleur.
-- 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 -- Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- (at your option) any later version. --
-- -- This program is free software; you can redistribute it and/or modify
-- This program is distributed in the hope that it will be useful, -- it under the terms of the GNU General Public License as published by
-- but WITHOUT ANY WARRANTY; without even the implied warranty of -- the Free Software Foundation; either version 2 of the License, or
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- (at your option) any later version.
-- GNU General Public License for more details. --
-- -- This program is distributed in the hope that it will be useful,
-- You should have received a copy of the GNU General Public License -- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- along with this program; if not, write to the Free Software -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -- GNU General Public License for more details.
-- --
-- $Id$ -- You should have received a copy of the GNU General Public License
-- $Source$ -- 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$
create table llx_don_projet --
( -- ===================================================================
rowid SERIAL PRIMARY KEY,
tms timestamp, create table llx_don_projet
datec timestamp without time zone, (
libelle varchar(255), rowid SERIAL PRIMARY KEY,
fk_user_author integer NOT NULL, "tms" timestamp,
note text "datec" datetime,
); "libelle" varchar(255),
"fk_user_author" integer NOT NULL,
"note" text
);

View File

@@ -1,32 +1,35 @@
-- ============================================================================ -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org> -- (c) 2004, PostgreSQL Inc.
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be> -- (c) 2005, Laurent Destailleur.
--
-- 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 -- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- the Free Software Foundation; either version 2 of the License, or --
-- (at your option) any later version. -- 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 distributed in the hope that it will be useful, -- the Free Software Foundation; either version 2 of the License, or
-- but WITHOUT ANY WARRANTY; without even the implied warranty of -- (at your option) any later version.
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --
-- GNU General Public License for more details. -- This program is distributed in the hope that it will be useful,
-- -- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- You should have received a copy of the GNU General Public License -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- along with this program; if not, write to the Free Software -- GNU General Public License for more details.
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --
-- -- You should have received a copy of the GNU General Public License
-- $Id$ -- along with this program; if not, write to the Free Software
-- $Source$ -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-- --
-- ============================================================================ -- $Id$
-- $Source$
create table llx_editeur --
( -- ============================================================================
rowid SERIAL PRIMARY KEY,
oscid integer NOT NULL, create table llx_editeur
tms timestamp, (
nom varchar(255), rowid SERIAL PRIMARY KEY,
fk_user_author integer "oscid" integer NOT NULL,
); "tms" timestamp,
"nom" varchar(255),
"fk_user_author" integer
);

View File

@@ -1,34 +1,38 @@
-- ============================================================================ -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org> -- (c) 2004, PostgreSQL Inc.
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be> -- (c) 2005, Laurent Destailleur.
--
-- 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 -- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- the Free Software Foundation; either version 2 of the License, or -- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
-- (at your option) any later version. --
-- -- This program is free software; you can redistribute it and/or modify
-- This program is distributed in the hope that it will be useful, -- it under the terms of the GNU General Public License as published by
-- but WITHOUT ANY WARRANTY; without even the implied warranty of -- the Free Software Foundation; either version 2 of the License, or
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- (at your option) any later version.
-- GNU General Public License for more details. --
-- -- This program is distributed in the hope that it will be useful,
-- You should have received a copy of the GNU General Public License -- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- along with this program; if not, write to the Free Software -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -- GNU General Public License for more details.
-- --
-- $Id$ -- You should have received a copy of the GNU General Public License
-- $Source$ -- along with this program; if not, write to the Free Software
-- -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-- ============================================================================ --
-- $Id$
create table llx_entrepot -- $Source$
( --
rowid SERIAL PRIMARY KEY, -- ============================================================================
datec timestamp without time zone,
tms timestamp, create table llx_entrepot
label varchar(255) NOT NULL, (
description text, rowid SERIAL PRIMARY KEY,
statut smallint DEFAULT 1, -- 1 ouvert, 0 ferm<72> "datec" datetime,
fk_user_author integer "tms" timestamp,
); "label" varchar(255) NOT NULL,
"description" text,
"statut" tinyint DEFAULT 1, -- 1 ouvert, 0 ferm<72>
"fk_user_author" integer
);

View File

@@ -1,46 +1,47 @@
-- =================================================================== -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org> -- (c) 2004, PostgreSQL Inc.
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be> -- (c) 2005, Laurent Destailleur.
--
-- 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 -- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- the Free Software Foundation; either version 2 of the License, or --
-- (at your option) any later version. -- 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 distributed in the hope that it will be useful, -- the Free Software Foundation; either version 2 of the License, or
-- but WITHOUT ANY WARRANTY; without even the implied warranty of -- (at your option) any later version.
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --
-- GNU General Public License for more details. -- This program is distributed in the hope that it will be useful,
-- -- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- You should have received a copy of the GNU General Public License -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- along with this program; if not, write to the Free Software -- GNU General Public License for more details.
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --
-- -- You should have received a copy of the GNU General Public License
-- $Id$ -- along with this program; if not, write to the Free Software
-- $Source$ -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-- --
-- =================================================================== -- $Id$
-- $Source$
create table llx_expedition --
( -- ===================================================================
rowid serial PRIMARY KEY,
tms timestamp,
ref varchar(30) NOT NULL, create table llx_expedition
fk_commande integer, (
date_creation timestamp without time zone, -- date de creation rowid SERIAL PRIMARY KEY,
date_valid timestamp without time zone, -- date de validation "tms" timestamp,
date_expedition date, -- date de l'expedition "ref" varchar(30) NOT NULL,
fk_user_author integer, -- createur "fk_commande" integer,
fk_user_valid integer, -- valideur "date_creation" datetime, -- date de creation
fk_entrepot integer, "date_valid" datetime, -- date de validation
fk_expedition_methode integer, "date_expedition" date, -- date de l'expedition
fk_statut smallint DEFAULT 0, "fk_user_author" integer, -- createur
note text, "fk_user_valid" integer, -- valideur
model_pdf varchar(50), "fk_entrepot" integer,
"fk_expedition_methode" integer,
UNIQUE (ref) "fk_statut" smallint DEFAULT 0,
); "note" text,
"model_pdf" varchar(50),
CREATE INDEX llx_expedition_fk_expedition_methode ON llx_expedition(fk_expedition_methode); 4294967294);
CREATE INDEX llx_expedition_fk_commande ON llx_expedition(fk_commande); CREATE INDEX llx_expedition_fk_expedition_methode ON llx_expedition (fk_expedition_methode);
CREATE INDEX llx_expedition_fk_commande ON llx_expedition (fk_commande);

View File

@@ -1,32 +1,35 @@
-- =================================================================== -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org> -- (c) 2004, PostgreSQL Inc.
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be> -- (c) 2005, Laurent Destailleur.
--
-- 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 -- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- the Free Software Foundation; either version 2 of the License, or --
-- (at your option) any later version. -- 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 distributed in the hope that it will be useful, -- the Free Software Foundation; either version 2 of the License, or
-- but WITHOUT ANY WARRANTY; without even the implied warranty of -- (at your option) any later version.
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --
-- GNU General Public License for more details. -- This program is distributed in the hope that it will be useful,
-- -- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- You should have received a copy of the GNU General Public License -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- along with this program; if not, write to the Free Software -- GNU General Public License for more details.
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --
-- -- You should have received a copy of the GNU General Public License
-- $Id$ -- along with this program; if not, write to the Free Software
-- $Source$ -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-- --
-- =================================================================== -- $Id$
-- $Source$
create table llx_expedition_methode --
( -- ===================================================================
rowid integer PRIMARY KEY,
tms timestamp, create table llx_expedition_methode
code varchar(30) NOT NULL, (
libelle varchar(50) NOT NULL, rowid integer PRIMARY KEY,
description text, "tms" timestamp,
statut smallint DEFAULT 0 "code" varchar(30) NOT NULL,
); "libelle" varchar(50) NOT NULL,
"description" text,
"statut" tinyint DEFAULT 0
);

View File

@@ -1,34 +1,36 @@
-- =================================================================== -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org> -- (c) 2004, PostgreSQL Inc.
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be> -- (c) 2005, Laurent Destailleur.
--
-- 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 -- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- the Free Software Foundation; either version 2 of the License, or --
-- (at your option) any later version. -- 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 distributed in the hope that it will be useful, -- the Free Software Foundation; either version 2 of the License, or
-- but WITHOUT ANY WARRANTY; without even the implied warranty of -- (at your option) any later version.
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --
-- GNU General Public License for more details. -- This program is distributed in the hope that it will be useful,
-- -- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- You should have received a copy of the GNU General Public License -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- along with this program; if not, write to the Free Software -- GNU General Public License for more details.
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --
-- -- You should have received a copy of the GNU General Public License
-- $Id$ -- along with this program; if not, write to the Free Software
-- $Source$ -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-- --
-- =================================================================== -- $Id$
-- $Source$
create table llx_expeditiondet -- ===================================================================
(
rowid serial PRIMARY KEY,
fk_expedition integer NOT NULL, create table llx_expeditiondet
fk_commande_ligne integer NOT NULL, (
qty real -- quantit<69> rowid SERIAL PRIMARY KEY,
); "fk_expedition" integer NOT NULL,
"fk_commande_ligne" integer NOT NULL,
CREATE INDEX llx_expeditiondet_fk_expedition ON llx_expeditiondet(fk_expedition); "qty" real, -- quantit<69>
);
CREATE INDEX llx_expeditiondet_fk_commande_ligne ON llx_expeditiondet(fk_commande_ligne);
CREATE INDEX llx_expeditiondet_fk_expedition ON llx_expeditiondet (fk_expedition);
CREATE INDEX llx_expeditiondet_fk_commande_ligne ON llx_expeditiondet (fk_commande_ligne);

View File

@@ -0,0 +1,36 @@
-- Generated from dolibarr_mysql2pgsql
-- (c) 2004, PostgreSQL Inc.
-- (c) 2005, Laurent Destailleur.
-- ===================================================================
-- Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 2 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
--
-- $Id$
-- $Source$
-- ===================================================================
--
-- $Revision$
create table llx_export_compta
(
rowid SERIAL PRIMARY KEY,
"ref" varchar(12) NOT NULL,
"date_export" datetime, -- date de creation
"fk_user" integer NOT NULL,
"note" text
);

View File

@@ -1,28 +1,31 @@
-- =================================================================== -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be> -- (c) 2004, PostgreSQL Inc.
-- -- (c) 2005, Laurent Destailleur.
-- 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 -- Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- (at your option) any later version. --
-- -- This program is free software; you can redistribute it and/or modify
-- This program is distributed in the hope that it will be useful, -- it under the terms of the GNU General Public License as published by
-- but WITHOUT ANY WARRANTY; without even the implied warranty of -- the Free Software Foundation; either version 2 of the License, or
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- (at your option) any later version.
-- GNU General Public License for more details. --
-- -- This program is distributed in the hope that it will be useful,
-- You should have received a copy of the GNU General Public License -- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- along with this program; if not, write to the Free Software -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -- GNU General Public License for more details.
-- --
-- $Id$ -- You should have received a copy of the GNU General Public License
-- $Source$ -- along with this program; if not, write to the Free Software
-- -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-- =================================================================== --
-- $Id$
create table llx_fa_pr -- $Source$
( -- ===================================================================
rowid SERIAL PRIMARY KEY,
fk_facture integer, create table llx_fa_pr
fk_propal integer (
); rowid SERIAL PRIMARY KEY,
"fk_facture" integer,
"fk_propal" integer
);

View File

@@ -0,0 +1,36 @@
-- Generated from dolibarr_mysql2pgsql
-- (c) 2004, PostgreSQL Inc.
-- (c) 2005, Laurent Destailleur.
-- ============================================================================
-- Copyright (C) 2002-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- Copyright (C) 2004 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$
-- $Source$
--
-- ============================================================================
ALTER TABLE llx_facture ADD INDEX (fk_soc);
ALTER TABLE llx_facture ADD INDEX (fk_user_author);
ALTER TABLE llx_facture ADD INDEX (fk_user_valid);
ALTER TABLE llx_facture ADD FOREIGN KEY (fk_soc) REFERENCES llx_societe (idp);
ALTER TABLE llx_facture ADD FOREIGN KEY (fk_user_author) REFERENCES llx_user (rowid);
ALTER TABLE llx_facture ADD FOREIGN KEY (fk_user_valid) REFERENCES llx_user (rowid);

View File

@@ -1,52 +1,53 @@
-- =========================================================================== -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org> -- (c) 2004, PostgreSQL Inc.
-- Copyright (C) 2002-2003 <20>ric Seigne <erics@rycks.com> -- (c) 2005, Laurent Destailleur.
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
-- -- ===========================================================================
-- This program is free software; you can redistribute it and/or modify -- Copyright (C) 2001-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- 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$ -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-- $Source$ --
-- -- $Id$
-- =========================================================================== -- $Source$
-- ===========================================================================
create table llx_facture
(
rowid SERIAL PRIMARY KEY, create table llx_facture
facnumber varchar(50) NOT NULL, (
fk_soc integer NOT NULL, rowid SERIAL PRIMARY KEY,
datec timestamp without time zone, -- date de creation de la facture "facnumber" varchar(50) NOT NULL,
datef date, -- date de la facture "increment" varchar(10),
paye smallint DEFAULT 0 NOT NULL, "fk_soc" integer NOT NULL,
amount real DEFAULT 0 NOT NULL, "datec" datetime, -- date de creation de la facture
remise real DEFAULT 0, "datef" date, -- date de la facture
remise_percent real DEFAULT 0, "paye" smallint DEFAULT 0 NOT NULL,
tva real DEFAULT 0, "amount" real DEFAULT 0 NOT NULL,
total real DEFAULT 0, "remise" real DEFAULT 0,
total_ttc real DEFAULT 0, "remise_percent" real DEFAULT 0,
fk_statut smallint DEFAULT 0 NOT NULL, "tva" real DEFAULT 0,
author varchar(50), "total" real DEFAULT 0,
fk_user integer, -- createur de la facture "total_ttc" real DEFAULT 0,
fk_user_author integer, -- createur de la propale "fk_statut" smallint DEFAULT 0 NOT NULL,
fk_user_valid integer, -- valideur de la propale "author" varchar(50),
fk_projet integer, -- projet auquel est associ<63> la facture "fk_user" integer, -- createur de la facture
fk_cond_reglement integer, -- condition de reglement "fk_user_author" integer, -- createur de la propale
date_lim_reglement date, -- date limite de reglement "fk_user_valid" integer, -- valideur de la propale
note text "fk_projet" integer, -- projet auquel est associ<63> la facture
); "fk_cond_reglement" integer, -- condition de reglement (30 jours, fin de mois ...)
"fk_mode_reglement" integer, -- mode de reglement (Virement, Pr<50>l<EFBFBD>vement)
create unique index llx_facture_facnumber on llx_facture(facnumber); "date_lim_reglement" date, -- date limite de reglement
"note" text,
create index llx_facture_fksoc on llx_facture(fk_soc); 4294967294 "INDEX" fksoc (fk_soc)
);

View File

@@ -1,49 +1,51 @@
-- =========================================================================== -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org> -- (c) 2004, PostgreSQL Inc.
-- Copyright (C) 2002-2003 <20>ric Seigne <erics@rycks.com> -- (c) 2005, Laurent Destailleur.
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
-- -- ===========================================================================
-- This program is free software; you can redistribute it and/or modify -- Copyright (C) 2001-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- 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$ -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-- $Source$ --
-- -- $Id$
-- =========================================================================== -- $Source$
--
create table llx_facture_fourn -- ===========================================================================
(
rowid SERIAL PRIMARY KEY,
facnumber varchar(50) NOT NULL,
fk_soc integer NOT NULL,
datec timestamp without time zone, -- date de creation de la facture
datef date, -- date de la facture create table llx_facture_fourn
libelle varchar(255), (
paye smallint DEFAULT 0 NOT NULL, rowid SERIAL PRIMARY KEY,
amount real DEFAULT 0 NOT NULL, "facnumber" varchar(50) NOT NULL,
remise real DEFAULT 0, "fk_soc" integer NOT NULL,
tva real DEFAULT 0, "datec" datetime, -- date de creation de la facture
total real DEFAULT 0, "datef" date, -- date de la facture
total_ht real DEFAULT 0, "libelle" varchar(255),
total_tva real DEFAULT 0, "paye" smallint DEFAULT 0 NOT NULL,
total_ttc real DEFAULT 0, "amount" real DEFAULT 0 NOT NULL,
"remise" real DEFAULT 0,
fk_statut smallint DEFAULT 0 NOT NULL, "tva" real DEFAULT 0,
"total" real DEFAULT 0,
fk_user_author integer, -- createur de la propale "total_ht" real DEFAULT 0,
fk_user_valid integer, -- valideur de la propale "total_tva" real DEFAULT 0,
note text "total_ttc" real DEFAULT 0,
); "fk_statut" smallint DEFAULT 0 NOT NULL,
"fk_user_author" integer, -- createur de la facture
create unique index llx_facture_fourn_facnumber on llx_facture_fourn(facnumber, fk_soc); "fk_user_valid" integer, -- valideur de la facture
"note" text
);

View File

@@ -1,36 +1,39 @@
-- =================================================================== -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org> -- (c) 2004, PostgreSQL Inc.
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be> -- (c) 2005, Laurent Destailleur.
--
-- 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 -- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- the Free Software Foundation; either version 2 of the License, or --
-- (at your option) any later version. -- 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 distributed in the hope that it will be useful, -- the Free Software Foundation; either version 2 of the License, or
-- but WITHOUT ANY WARRANTY; without even the implied warranty of -- (at your option) any later version.
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --
-- GNU General Public License for more details. -- This program is distributed in the hope that it will be useful,
-- -- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- You should have received a copy of the GNU General Public License -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- along with this program; if not, write to the Free Software -- GNU General Public License for more details.
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --
-- -- You should have received a copy of the GNU General Public License
-- $Id$ -- along with this program; if not, write to the Free Software
-- $Source$ -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-- --
-- =================================================================== -- $Id$
-- $Source$
create table llx_facture_fourn_det -- ===================================================================
(
rowid SERIAL PRIMARY KEY,
fk_facture_fourn integer NOT NULL, create table llx_facture_fourn_det
fk_product integer NULL, (
description text, rowid SERIAL PRIMARY KEY,
pu_ht real DEFAULT 0, "fk_facture_fourn" integer NOT NULL,
qty smallint DEFAULT 1, "fk_product" integer NULL,
total_ht real DEFAULT 0, "description" text,
tva_taux real DEFAULT 0, "pu_ht" real DEFAULT 0,
tva real DEFAULT 0, "qty" smallint DEFAULT 1,
total_ttc real DEFAULT 0 "total_ht" real DEFAULT 0,
); "tva_taux" real DEFAULT 0,
"tva" real DEFAULT 0,
"total_ttc" real DEFAULT 0
);

View File

@@ -1,45 +1,47 @@
-- =========================================================================== -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org> -- (c) 2004, PostgreSQL Inc.
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be> -- (c) 2005, Laurent Destailleur.
--
-- 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 -- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- the Free Software Foundation; either version 2 of the License, or --
-- (at your option) any later version. -- 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 distributed in the hope that it will be useful, -- the Free Software Foundation; either version 2 of the License, or
-- but WITHOUT ANY WARRANTY; without even the implied warranty of -- (at your option) any later version.
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --
-- GNU General Public License for more details. -- This program is distributed in the hope that it will be useful,
-- -- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- You should have received a copy of the GNU General Public License -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- along with this program; if not, write to the Free Software -- GNU General Public License for more details.
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --
-- -- You should have received a copy of the GNU General Public License
-- $Id$ -- along with this program; if not, write to the Free Software
-- $Source$ -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-- --
-- =========================================================================== -- $Id$
-- $Source$
create table llx_facture_rec -- ===========================================================================
(
rowid SERIAL PRIMARY KEY,
titre varchar(50) NOT NULL,
fk_soc integer NOT NULL,
datec timestamp without time zone, -- date de creation
create table llx_facture_rec
amount real DEFAULT 0 NOT NULL, (
remise real DEFAULT 0, rowid SERIAL PRIMARY KEY,
remise_percent real DEFAULT 0, "titre" varchar(50) NOT NULL,
tva real DEFAULT 0, "fk_soc" integer NOT NULL,
total real DEFAULT 0, "datec" datetime, -- date de creation
total_ttc real DEFAULT 0, "amount" real DEFAULT 0 NOT NULL,
"remise" real DEFAULT 0,
fk_user_author integer, -- createur "remise_percent" real DEFAULT 0,
fk_projet integer, -- projet auquel est associ<63> la facture "tva" real DEFAULT 0,
fk_cond_reglement integer, -- condition de reglement "total" real DEFAULT 0,
"total_ttc" real DEFAULT 0,
note text "fk_user_author" integer, -- createur
); "fk_projet" integer, -- projet auquel est associ<63> la facture
"fk_cond_reglement" integer, -- condition de reglement
CREATE INDEX llx_facture_rec_fksoc ON llx_facture_rec (fk_soc); "note" text,
"INDEX" fksoc (fk_soc)
);

View File

@@ -0,0 +1,29 @@
-- Generated from dolibarr_mysql2pgsql
-- (c) 2004, PostgreSQL Inc.
-- (c) 2005, Laurent Destailleur.
-- ===================================================================
-- 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$
-- $Source$
-- ===================================================================
-- Supprimme orhpelins pour permettre mont<6E>e de la cl<63>
DELETE llx_facture_tva_sum FROM llx_facture_tva_sum LEFT JOIN llx_facture ON llx_facture_tva_sum.fk_facture = llx_facture.rowid WHERE llx_facture.rowid IS NULL;
ALTER TABLE llx_facture_tva_sum ADD CONSTRAINT facture_tva_sum_fk_facture_rowid FOREIGN KEY (fk_facture) REFERENCES llx_facture (rowid);

View File

@@ -1,31 +1,33 @@
-- =================================================================== -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org> -- (c) 2004, PostgreSQL Inc.
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be> -- (c) 2005, Laurent Destailleur.
--
-- 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 -- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- the Free Software Foundation; either version 2 of the License, or --
-- (at your option) any later version. -- 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 distributed in the hope that it will be useful, -- the Free Software Foundation; either version 2 of the License, or
-- but WITHOUT ANY WARRANTY; without even the implied warranty of -- (at your option) any later version.
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --
-- GNU General Public License for more details. -- This program is distributed in the hope that it will be useful,
-- -- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- You should have received a copy of the GNU General Public License -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- along with this program; if not, write to the Free Software -- GNU General Public License for more details.
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --
-- -- You should have received a copy of the GNU General Public License
-- $Id$ -- along with this program; if not, write to the Free Software
-- $Source$ -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-- --
-- =================================================================== -- $Id$
-- $Source$
create table llx_facture_tva_sum -- ===================================================================
(
fk_facture integer NOT NULL,
amount real NOT NULL, create table llx_facture_tva_sum
tva_tx real NOT NULL (
); "fk_facture" integer NOT NULL,
"amount" real NOT NULL,
CREATE INDEX llx_facture_tva_sum_fk_facture ON llx_facture_tva_sum (fk_facture); "tva_tx" real NOT NULL,
KEY(fk_facture)
);

View File

@@ -0,0 +1,29 @@
-- Generated from dolibarr_mysql2pgsql
-- (c) 2004, PostgreSQL Inc.
-- (c) 2005, Laurent Destailleur.
-- ===================================================================
-- 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$
-- $Source$
-- ===================================================================
-- Supprimme orhpelins pour permettre mont<6E>e de la cl<63>
DELETE llx_facturedet FROM llx_facturedet LEFT JOIN llx_facture ON llx_facturedet.fk_facture = llx_facture.rowid WHERE llx_facture.rowid IS NULL;
ALTER TABLE llx_facturedet ADD CONSTRAINT facturedet_fk_facture_rowid FOREIGN KEY (fk_facture) REFERENCES llx_facture (rowid);

View File

@@ -1,41 +1,44 @@
-- =================================================================== -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org> -- (c) 2004, PostgreSQL Inc.
-- Copyright (C) 2002-2003 <20>ric Seigne <erics@rycks.com> -- (c) 2005, Laurent Destailleur.
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
-- -- ===================================================================
-- This program is free software; you can redistribute it and/or modify -- Copyright (C) 2001-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- it under the terms of the GNU General Public License as published by -- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
-- the Free Software Foundation; either version 2 of the License, or --
-- (at your option) any later version. -- 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 distributed in the hope that it will be useful, -- the Free Software Foundation; either version 2 of the License, or
-- but WITHOUT ANY WARRANTY; without even the implied warranty of -- (at your option) any later version.
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --
-- GNU General Public License for more details. -- This program is distributed in the hope that it will be useful,
-- -- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- You should have received a copy of the GNU General Public License -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- along with this program; if not, write to the Free Software -- GNU General Public License for more details.
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --
-- -- You should have received a copy of the GNU General Public License
-- $Id$ -- along with this program; if not, write to the Free Software
-- $Source$ -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-- --
-- =================================================================== -- $Id$
-- $Source$
create table llx_facturedet -- ===================================================================
(
rowid SERIAL PRIMARY KEY,
fk_facture integer NOT NULL, create table llx_facturedet
fk_product integer DEFAULT 0 NOT NULL, (
description text, rowid SERIAL PRIMARY KEY,
tva_taux real DEFAULT 19.6, -- taux tva "fk_facture" integer NOT NULL,
qty real, -- quantit<69> "fk_product" integer DEFAULT 0 NOT NULL,
remise_percent real DEFAULT 0, -- pourcentage de remise "description" text,
remise real DEFAULT 0, -- montant de la remise "tva_taux" real DEFAULT 19.6, -- taux tva
subprice real, -- prix avant remise "qty" real, -- quantit<EFBFBD>
price real, -- prix final "remise_percent" real DEFAULT 0, -- pourcentage de remise
date_start timestamp without time zone, -- date debut si service "remise" real DEFAULT 0, -- montant de la remise
date_end timestamp without time zone -- date fin si service "subprice" real, -- prix avant remise
); "price" real, -- prix final
"date_start" datetime, -- date debut si service
CREATE INDEX llx_facturedet_fk_facture ON llx_facturedet (fk_facture); "date_end" datetime, -- date fin si service
"fk_code_ventilation" integer DEFAULT 0 NOT NULL,
"fk_export_compta" integer DEFAULT 0 NOT NULL
);

View File

@@ -1,36 +1,38 @@
-- =================================================================== -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org> -- (c) 2004, PostgreSQL Inc.
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be> -- (c) 2005, Laurent Destailleur.
--
-- 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 -- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- the Free Software Foundation; either version 2 of the License, or --
-- (at your option) any later version. -- 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 distributed in the hope that it will be useful, -- the Free Software Foundation; either version 2 of the License, or
-- but WITHOUT ANY WARRANTY; without even the implied warranty of -- (at your option) any later version.
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --
-- GNU General Public License for more details. -- This program is distributed in the hope that it will be useful,
-- -- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- You should have received a copy of the GNU General Public License -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- along with this program; if not, write to the Free Software -- GNU General Public License for more details.
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --
-- -- You should have received a copy of the GNU General Public License
-- $Id$ -- along with this program; if not, write to the Free Software
-- $Source$ -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-- --
-- =================================================================== -- $Id$
-- $Source$
create table llx_facturedet_rec -- ===================================================================
(
rowid SERIAL PRIMARY KEY, create table llx_facturedet_rec
fk_facture integer NOT NULL, (
fk_product integer, rowid SERIAL PRIMARY KEY,
description text, "fk_facture" integer NOT NULL,
tva_taux real DEFAULT 19.6, -- taux tva "fk_product" integer,
qty real, -- quantit<69> "description" text,
remise_percent real DEFAULT 0, -- pourcentage de remise "tva_taux" real DEFAULT 19.6, -- taux tva
remise real DEFAULT 0, -- montant de la remise "qty" real, -- quantit<69>
subprice real, -- prix avant remise "remise_percent" real DEFAULT 0, -- pourcentage de remise
price real -- prix final "remise" real DEFAULT 0, -- montant de la remise
); "subprice" real, -- prix avant remise
"price" real -- prix final
);

View File

@@ -0,0 +1,27 @@
-- Generated from dolibarr_mysql2pgsql
-- (c) 2004, PostgreSQL Inc.
-- (c) 2005, Laurent Destailleur.
-- ===================================================================
-- 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$
-- $Source$
--
-- ===================================================================
ALTER TABLE llx_fichinter ADD CONSTRAINT fichinter_fk_soc_idp FOREIGN KEY (fk_soc) REFERENCES llx_societe (idp);

View File

@@ -1,42 +1,42 @@
-- =================================================================== -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org> -- (c) 2004, PostgreSQL Inc.
-- Copyright (C) 2002-2003 <20>ric Seigne <erics@rycks.com> -- (c) 2005, Laurent Destailleur.
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
-- -- ===================================================================
-- This program is free software; you can redistribute it and/or modify -- Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- 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$ -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-- $Source$ --
-- -- $Id$
-- =================================================================== -- $Source$
--
create table llx_fichinter -- ===================================================================
(
rowid SERIAL PRIMARY KEY,
fk_soc integer NOT NULL, create table llx_fichinter
fk_projet integer DEFAULT 0, -- projet auquel est rattache la fiche (
ref varchar(30) NOT NULL, -- number rowid SERIAL PRIMARY KEY,
datec timestamp without time zone, -- date de creation "fk_soc" integer NOT NULL,
date_valid timestamp without time zone, -- date de validation "fk_projet" integer DEFAULT 0, -- projet auquel est rattache la fiche
datei date, -- date de l'intervention "ref" varchar(30) NOT NULL, -- number
fk_user_author integer, -- createur de la fiche "datec" datetime, -- date de creation
fk_user_valid integer, -- valideur de la fiche "date_valid" datetime, -- date de validation
fk_statut smallint DEFAULT 0, "datei" date, -- date de l'intervention
duree real, "fk_user_author" integer, -- createur de la fiche
note text "fk_user_valid" integer, -- valideur de la fiche
); "fk_statut" smallint DEFAULT 0,
"duree" real,
CREATE UNIQUE INDEX llx_fichinter_ref ON llx_fichinter(ref); "note" text,
4294967294);

View File

@@ -1,34 +1,37 @@
-- ============================================================================ -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org> -- (c) 2004, PostgreSQL Inc.
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be> -- (c) 2005, Laurent Destailleur.
--
-- 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 -- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- the Free Software Foundation; either version 2 of the License, or --
-- (at your option) any later version. -- 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 distributed in the hope that it will be useful, -- the Free Software Foundation; either version 2 of the License, or
-- but WITHOUT ANY WARRANTY; without even the implied warranty of -- (at your option) any later version.
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --
-- GNU General Public License for more details. -- This program is distributed in the hope that it will be useful,
-- -- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- You should have received a copy of the GNU General Public License -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- along with this program; if not, write to the Free Software -- GNU General Public License for more details.
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --
-- -- You should have received a copy of the GNU General Public License
-- $Id$ -- along with this program; if not, write to the Free Software
-- $Source$ -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-- --
-- ============================================================================ -- $Id$
-- $Source$
create table llx_groupart --
( -- ============================================================================
rowid SERIAL PRIMARY KEY,
osc_id integer NOT NULL, create table llx_groupart
tms timestamp, (
nom varchar(64), rowid SERIAL PRIMARY KEY,
groupart CHAR(8) CHECK (groupart IN ('artiste','groupe')) NOT NULL, "osc_id" integer NOT NULL,
description text NOT NULL, "tms" timestamp,
fk_user_author integer "nom" varchar(64),
); "groupart" varchar(7) CHECK (groupart IN ("artiste","groupe")) NOT NULL,
"description" text NOT NULL,
"fk_user_author" integer
);

View File

@@ -1,36 +1,38 @@
-- ======================================================================== -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2000-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org> -- (c) 2004, PostgreSQL Inc.
-- Copyright (C) 2000-2004 Benoit Mortier <benoit.mortier@opensides.be> -- (c) 2005, Laurent Destailleur.
--
-- 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 -- Copyright (C) 2000-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- the Free Software Foundation; either version 2 of the License, or --
-- (at your option) any later version. -- 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 distributed in the hope that it will be useful, -- the Free Software Foundation; either version 2 of the License, or
-- but WITHOUT ANY WARRANTY; without even the implied warranty of -- (at your option) any later version.
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --
-- GNU General Public License for more details. -- This program is distributed in the hope that it will be useful,
-- -- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- You should have received a copy of the GNU General Public License -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- along with this program; if not, write to the Free Software -- GNU General Public License for more details.
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --
-- -- You should have received a copy of the GNU General Public License
-- $Id$ -- along with this program; if not, write to the Free Software
-- $Source$ -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-- --
-- ======================================================================== -- $Id$
-- $Source$
create table llx_groupesociete --
( -- ========================================================================
rowid serial PRIMARY KEY,
parent integer UNIQUE,
tms timestamp, create table llx_groupesociete
datec timestamp without time zone, -- creation date (
nom varchar(60), -- company name rowid SERIAL PRIMARY KEY,
note text, -- "tms" timestamp,
remise real DEFAULT 0, -- remise syst<73>matique pour le client "datec" datetime, -- creation date
fk_user_author integer "nom" varchar(60), -- company name
"note" text, --
) "remise" real DEFAULT 0, -- remise syst<73>matique pour le client
"fk_user_author" integer
);

View File

@@ -1,37 +1,40 @@
-- ======================================================================== -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2000-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org> -- (c) 2004, PostgreSQL Inc.
-- Copyright (C) 2000-2004 Benoit Mortier <benoit.mortier@opensides.be> -- (c) 2005, Laurent Destailleur.
--
-- 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 -- Copyright (C) 2000-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- the Free Software Foundation; either version 2 of the License, or --
-- (at your option) any later version. -- 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 distributed in the hope that it will be useful, -- the Free Software Foundation; either version 2 of the License, or
-- but WITHOUT ANY WARRANTY; without even the implied warranty of -- (at your option) any later version.
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --
-- GNU General Public License for more details. -- This program is distributed in the hope that it will be useful,
-- -- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- You should have received a copy of the GNU General Public License -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- along with this program; if not, write to the Free Software -- GNU General Public License for more details.
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --
-- -- You should have received a copy of the GNU General Public License
-- $Id$ -- along with this program; if not, write to the Free Software
-- $Source$ -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-- --
-- Historique des remises au groupes de societes -- $Id$
-- -- $Source$
-- ======================================================================== --
-- Historique des remises au groupes de societes
create table llx_groupesociete_remise --
( -- ========================================================================
rowid serial PRIMARY KEY,
fk_groupe integer NOT NULL,
tms timestamp, create table llx_groupesociete_remise
datec timestamp without time zone, -- creation date (
fk_user_author integer, -- utilisateur qui a cr<63><72> l'info rowid SERIAL PRIMARY KEY,
remise real DEFAULT 0, -- remise syst<73>matique pour le client "fk_groupe" integer NOT NULL,
note text "tms" timestamp,
"datec" datetime, -- creation date
); "fk_user_author" integer, -- utilisateur qui a cr<63><72> l'info
"remise" real DEFAULT 0, -- remise syst<73>matique pour le client
"note" text
);

View File

@@ -1,33 +1,36 @@
-- ============================================================================ -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org> -- (c) 2004, PostgreSQL Inc.
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be> -- (c) 2005, Laurent Destailleur.
--
-- 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 -- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- the Free Software Foundation; either version 2 of the License, or --
-- (at your option) any later version. -- 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 distributed in the hope that it will be useful, -- the Free Software Foundation; either version 2 of the License, or
-- but WITHOUT ANY WARRANTY; without even the implied warranty of -- (at your option) any later version.
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --
-- GNU General Public License for more details. -- This program is distributed in the hope that it will be useful,
-- -- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- You should have received a copy of the GNU General Public License -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- along with this program; if not, write to the Free Software -- GNU General Public License for more details.
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --
-- -- You should have received a copy of the GNU General Public License
-- $Id$ -- along with this program; if not, write to the Free Software
-- $Source$ -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-- --
-- ============================================================================ -- $Id$
-- $Source$
create table llx_lieu_concert --
( -- ============================================================================
rowid SERIAL PRIMARY KEY,
tms timestamp, create table llx_lieu_concert
nom varchar(64) NOT NULL, (
description text, rowid SERIAL PRIMARY KEY,
ville varchar(64) NOT NULL, "tms" timestamp,
fk_user_author integer "nom" varchar(64) NOT NULL,
); "description" text,
"ville" varchar(64) NOT NULL,
"fk_user_author" integer
);

View File

@@ -1,45 +1,44 @@
-- ============================================================================ -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org> -- (c) 2004, PostgreSQL Inc.
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be> -- (c) 2005, Laurent Destailleur.
--
-- 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 -- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- the Free Software Foundation; either version 2 of the License, or --
-- (at your option) any later version. -- 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 distributed in the hope that it will be useful, -- the Free Software Foundation; either version 2 of the License, or
-- but WITHOUT ANY WARRANTY; without even the implied warranty of -- (at your option) any later version.
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --
-- GNU General Public License for more details. -- This program is distributed in the hope that it will be useful,
-- -- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- You should have received a copy of the GNU General Public License -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- along with this program; if not, write to the Free Software -- GNU General Public License for more details.
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --
-- -- You should have received a copy of the GNU General Public License
-- $Id$ -- along with this program; if not, write to the Free Software
-- $Source$ -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-- --
-- ============================================================================ -- $Id$
-- $Source$
create table llx_livre --
( -- ============================================================================
rowid SERIAL PRIMARY KEY,
oscid integer NOT NULL,
tms timestamp, create table llx_livre
status smallint, (
date_ajout timestamp without time zone, rowid SERIAL PRIMARY KEY,
ref varchar(12), "oscid" integer NOT NULL,
title varchar(64), "tms" timestamp,
annee smallint, "status" tinyint,
description text, "date_ajout" datetime,
prix decimal(15,4), "ref" varchar(12),
fk_editeur integer, "title" varchar(64),
fk_user_author integer, "annee" int2,
frais_de_port smallint DEFAULT 1, "description" text,
"prix" decimal(15,4),
UNIQUE(ref) "fk_editeur" integer,
"fk_user_author" integer,
); "frais_de_port" tinyint DEFAULT 1
);

View File

@@ -1,31 +1,32 @@
-- ============================================================================ -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org> -- (c) 2004, PostgreSQL Inc.
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be> -- (c) 2005, Laurent Destailleur.
--
-- 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 -- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- the Free Software Foundation; either version 2 of the License, or --
-- (at your option) any later version. -- 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 distributed in the hope that it will be useful, -- the Free Software Foundation; either version 2 of the License, or
-- but WITHOUT ANY WARRANTY; without even the implied warranty of -- (at your option) any later version.
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --
-- GNU General Public License for more details. -- This program is distributed in the hope that it will be useful,
-- -- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- You should have received a copy of the GNU General Public License -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- along with this program; if not, write to the Free Software -- GNU General Public License for more details.
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --
-- -- You should have received a copy of the GNU General Public License
-- $Id$ -- along with this program; if not, write to the Free Software
-- $Source$ -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-- --
-- ============================================================================ -- $Id$
-- $Source$
create table llx_livre_to_auteur --
( -- ============================================================================
fk_livre integer NOT NULL,
fk_auteur integer NOT NULL,
create table llx_livre_to_auteur
UNIQUE(fk_livre, fk_auteur) (
); "fk_livre" integer NOT NULL,
"fk_auteur" integer NOT NULL
);

View File

@@ -0,0 +1,59 @@
-- Generated from dolibarr_mysql2pgsql
-- (c) 2004, PostgreSQL Inc.
-- (c) 2005, Laurent Destailleur.
-- ========================================================================
-- Copyright (C) 2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 2 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
--
-- $Id$
-- $Source$
--
-- ========================================================================
--
-- redaction : 0
-- valide : 1
-- approuv<75> : 2
-- envoye : 3
create table llx_mailing
(
rowid SERIAL PRIMARY KEY,
"statut" smallint DEFAULT 0, --
"date_envoi" datetime, -- date d'envoi
"titre" varchar(60), -- company name
"sujet" varchar(60), -- company name
"body" text,
"cible" varchar(60),
"nbemail" integer,
"email_from" varchar(160), -- company name
"email_replyto" varchar(160), -- company name
"email_errorsto" varchar(160), -- company name
"date_creat" datetime, -- creation date
"date_valid" datetime, -- creation date
"date_appro" datetime, -- creation date
"fk_user_creat" integer, -- utilisateur qui a cr<63><72> l'info
"fk_user_valid" integer, -- utilisateur qui a cr<63><72> l'info
"fk_user_appro" integer -- utilisateur qui a cr<63><72> l'info
);

View File

@@ -0,0 +1,28 @@
-- Generated from dolibarr_mysql2pgsql
-- (c) 2004, PostgreSQL Inc.
-- (c) 2005, Laurent Destailleur.
-- ===================================================================
-- 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$
-- $Source$
--
-- ===================================================================
ALTER TABLE llx_mailing_cibles ADD UNIQUE uk_mailing_cibles (fk_mailing, email);

View File

@@ -0,0 +1,39 @@
-- Generated from dolibarr_mysql2pgsql
-- (c) 2004, PostgreSQL Inc.
-- (c) 2005, Laurent Destailleur.
-- ========================================================================
-- Copyright (C) 2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 2 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
--
-- $Id$
-- $Source$
--
-- ========================================================================
--
create table llx_mailing_cibles
(
rowid SERIAL PRIMARY KEY,
"fk_mailing" integer NOT NULL,
"fk_contact" integer NOT NULL,
"nom" varchar(160),
"prenom" varchar(160),
"email" varchar(160) NOT NULL
);

View File

@@ -0,0 +1,36 @@
-- Generated from dolibarr_mysql2pgsql
-- (c) 2004, PostgreSQL Inc.
-- (c) 2005, Laurent Destailleur.
-- ============================================================================
-- 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$
-- $Source$
--
-- ============================================================================
create table llx_models
(
rowid SERIAL PRIMARY KEY,
"tms" timestamp,
"type" varchar(32), -- Fonction destinee au modele
"public" smallint DEFAULT 1 NOT NULL, -- Model publique ou privee
"fk_user" integer, -- Id utilisateur si privee, sinon null
"title" varchar(128), -- Titre modele
"content" text -- Texte du modele
);

View File

@@ -1,45 +1,49 @@
-- ============================================================================ -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org> -- (c) 2004, PostgreSQL Inc.
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be> -- (c) 2005, Laurent Destailleur.
--
-- 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 -- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- the Free Software Foundation; either version 2 of the License, or --
-- (at your option) any later version. -- 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 distributed in the hope that it will be useful, -- the Free Software Foundation; either version 2 of the License, or
-- but WITHOUT ANY WARRANTY; without even the implied warranty of -- (at your option) any later version.
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --
-- GNU General Public License for more details. -- This program is distributed in the hope that it will be useful,
-- -- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- You should have received a copy of the GNU General Public License -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- along with this program; if not, write to the Free Software -- GNU General Public License for more details.
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --
-- -- You should have received a copy of the GNU General Public License
-- $Id$ -- along with this program; if not, write to the Free Software
-- $Source$ -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-- --
-- ============================================================================ -- $Id$
-- $Source$
create table llx_newsletter --
( -- ============================================================================
rowid SERIAL PRIMARY KEY,
datec timestamp without time zone, create table llx_newsletter
tms timestamp, (
email_subject varchar(32) NOT NULL, rowid SERIAL PRIMARY KEY,
email_from_name varchar(255) NOT NULL, "datec" datetime,
email_from_email varchar(255) NOT NULL, "tms" timestamp,
email_replyto varchar(255) NOT NULL, "email_subject" varchar(32) NOT NULL,
email_body text, "email_from_name" varchar(255) NOT NULL,
target smallint, "email_from_email" varchar(255) NOT NULL,
sql_target text, "email_replyto" varchar(255) NOT NULL,
status smallint DEFAULT 0 NOT NULL, "email_body" text,
date_send_request timestamp without time zone, -- debut de l'envoi demand<6E> "target" smallint,
date_send_begin timestamp without time zone, -- debut de l'envoi "sql_target" text,
date_send_end timestamp without time zone, -- fin de l'envoi "status" smallint DEFAULT 0 NOT NULL,
nbsent integer, -- nombre de mails envoy<6F>s "date_send_request" datetime, -- debut de l'envoi demand<6E>
nberror integer, -- nombre de mails envoy<EFBFBD>s "date_send_begin" datetime, -- debut de l'envoi
fk_user_author integer, "date_send_end" datetime, -- fin de l'envoi
fk_user_valid integer, "nbsent" integer, -- nombre de mails envoy<6F>s
fk_user_modif integer "nberror" integer, -- nombre de mails envoy<6F>s
); "fk_user_author" integer,
"fk_user_valid" integer,
"fk_user_modif" integer
);

View File

@@ -1,33 +1,36 @@
-- =================================================================== -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org> -- (c) 2004, PostgreSQL Inc.
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be> -- (c) 2005, Laurent Destailleur.
--
-- 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 -- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- the Free Software Foundation; either version 2 of the License, or --
-- (at your option) any later version. -- 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 distributed in the hope that it will be useful, -- the Free Software Foundation; either version 2 of the License, or
-- but WITHOUT ANY WARRANTY; without even the implied warranty of -- (at your option) any later version.
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --
-- GNU General Public License for more details. -- This program is distributed in the hope that it will be useful,
-- -- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- You should have received a copy of the GNU General Public License -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- along with this program; if not, write to the Free Software -- GNU General Public License for more details.
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --
-- -- You should have received a copy of the GNU General Public License
-- $Id$ -- along with this program; if not, write to the Free Software
-- $Source$ -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-- --
-- =================================================================== -- $Id$
-- $Source$
create table llx_notify --
( -- ===================================================================
rowid SERIAL PRIMARY KEY,
tms timestamp, create table llx_notify
daten timestamp without time zone, -- date de la notification (
fk_action integer NOT NULL, rowid SERIAL PRIMARY KEY,
fk_contact integer NOT NULL, "tms" timestamp,
objet_type CHAR(10) CHECK (objet_type IN ('ficheinter','facture','propale')), "daten" datetime, -- date de la notification
objet_id integer NOT NULL "fk_action" integer NOT NULL,
); "fk_contact" integer NOT NULL,
"objet_type" varchar(10) CHECK (objet_type IN ('ficheinter','facture','propale')) ,
"objet_id" integer NOT NULL
);

View File

@@ -1,32 +1,35 @@
-- =================================================================== -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org> -- (c) 2004, PostgreSQL Inc.
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be> -- (c) 2005, Laurent Destailleur.
--
-- 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 -- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- the Free Software Foundation; either version 2 of the License, or --
-- (at your option) any later version. -- 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 distributed in the hope that it will be useful, -- the Free Software Foundation; either version 2 of the License, or
-- but WITHOUT ANY WARRANTY; without even the implied warranty of -- (at your option) any later version.
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --
-- GNU General Public License for more details. -- This program is distributed in the hope that it will be useful,
-- -- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- You should have received a copy of the GNU General Public License -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- along with this program; if not, write to the Free Software -- GNU General Public License for more details.
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --
-- -- You should have received a copy of the GNU General Public License
-- $Id$ -- along with this program; if not, write to the Free Software
-- $Source$ -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-- --
-- =================================================================== -- $Id$
-- $Source$
create table llx_notify_def --
( -- ===================================================================
rowid SERIAL PRIMARY KEY,
tms timestamp, create table llx_notify_def
datec date, -- date de creation (
fk_action integer NOT NULL, rowid SERIAL PRIMARY KEY,
fk_soc integer NOT NULL, "tms" timestamp,
fk_contact integer NOT NULL "datec" date, -- date de creation
); "fk_action" integer NOT NULL,
"fk_soc" integer NOT NULL,
"fk_contact" integer NOT NULL
);

View File

@@ -1,38 +1,49 @@
-- =================================================================== -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be> -- (c) 2004, PostgreSQL Inc.
-- -- (c) 2005, Laurent Destailleur.
-- 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 -- Copyright (C) 2001-2002,2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- (at your option) any later version. -- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
-- --
-- This program is distributed in the hope that it will be useful, -- This program is free software; you can redistribute it and/or modify
-- but WITHOUT ANY WARRANTY; without even the implied warranty of -- it under the terms of the GNU General Public License as published by
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- the Free Software Foundation; either version 2 of the License, or
-- GNU General Public License for more details. -- (at your option) any later version.
-- --
-- You should have received a copy of the GNU General Public License -- This program is distributed in the hope that it will be useful,
-- along with this program; if not, write to the Free Software -- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- -- GNU General Public License for more details.
-- $Id$ --
-- $Source$ -- 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.
--
create table llx_paiement -- $Id$
( -- $Source$
rowid SERIAL PRIMARY KEY, -- ===================================================================
fk_facture integer, --
datec timestamp without time zone, -- date de creation --
tms timestamp, -- Satut, 0 ou 1, 1 n'est plus supprimable
datep timestamp without time zone, -- payment date -- fk_export_compta 0 pas export<72>
amount real DEFAULT 0,
author varchar(50),
fk_paiement integer NOT NULL, create table llx_paiement
num_paiement varchar(50), (
note text, rowid SERIAL PRIMARY KEY,
fk_bank integer NOT NULL, "fk_facture" integer,
fk_user_creat integer, -- utilisateur qui a cr<63><72> l'info "datec" datetime, -- date de creation
fk_user_modif integer -- utilisateur qui a modifi<66> l'info "tms" timestamp,
); "datep" datetime, -- payment date
"amount" real DEFAULT 0,
"author" varchar(50),
"fk_paiement" integer NOT NULL,
"num_paiement" varchar(50),
"note" text,
"fk_bank" integer NOT NULL,
"fk_user_creat" integer, -- utilisateur qui a cr<63><72> l'info
"fk_user_modif" integer, -- utilisateur qui a modifi<66> l'info
"statut" smallint DEFAULT 0 NOT NULL,
"fk_export_compta" integer DEFAULT 0 NOT NULL
);

View File

@@ -0,0 +1,32 @@
-- Generated from dolibarr_mysql2pgsql
-- (c) 2004, PostgreSQL Inc.
-- (c) 2005, Laurent Destailleur.
-- ============================================================================
-- 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$
-- $Source$
--
-- ===========================================================================
-- Supprimme orhpelins pour permettre mont<6E>e de la cl<63>
DELETE llx_paiement_facture FROM llx_paiement_facture LEFT JOIN llx_facture ON llx_paiement_facture.fk_facture = llx_facture.rowid WHERE llx_facture.rowid IS NULL;
DELETE llx_paiement_facture FROM llx_paiement_facture LEFT JOIn llx_paiement ON llx_paiement_facture.fk_facture = llx_paiement.rowid WHERE llx_paiement.rowid IS NULL;
ALTER TABLE llx_paiement_facture ADD CONSTRAINT paiement_facture_fk_facture FOREIGN KEY (fk_facture) REFERENCES llx_facture (rowid);
ALTER TABLE llx_paiement_facture ADD CONSTRAINT paiement_facture_fk_paiement FOREIGN KEY (fk_paiement) REFERENCES llx_paiement (rowid);

View File

@@ -1,34 +1,36 @@
-- =================================================================== -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org> -- (c) 2004, PostgreSQL Inc.
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be> -- (c) 2005, Laurent Destailleur.
--
-- 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 -- Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- the Free Software Foundation; either version 2 of the License, or --
-- (at your option) any later version. -- 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 distributed in the hope that it will be useful, -- the Free Software Foundation; either version 2 of the License, or
-- but WITHOUT ANY WARRANTY; without even the implied warranty of -- (at your option) any later version.
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --
-- GNU General Public License for more details. -- This program is distributed in the hope that it will be useful,
-- -- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- You should have received a copy of the GNU General Public License -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- along with this program; if not, write to the Free Software -- GNU General Public License for more details.
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --
-- -- You should have received a copy of the GNU General Public License
-- $Id$ -- along with this program; if not, write to the Free Software
-- $Source$ -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-- --
-- =================================================================== -- $Id$
-- $Source$
create table llx_paiement_facture -- ===================================================================
(
rowid serial PRIMARY KEY,
fk_paiement integer, create table llx_paiement_facture
fk_facture integer, (
amount real DEFAULT 0 rowid SERIAL PRIMARY KEY,
); "fk_paiement" integer,
"fk_facture" integer,
CREATE INDEX llx_paiement_facture_fk_paiement ON llx_paiement_facture(fk_paiement); "amount" real DEFAULT 0,
CREATE INDEX llx_paiement_facture_fk_facture ON llx_paiement_facture(fk_facture); key (fk_paiement),
key (fk_facture)
);

View File

@@ -1,39 +1,41 @@
-- =================================================================== -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net> -- (c) 2004, PostgreSQL Inc.
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be> -- (c) 2005, Laurent Destailleur.
--
-- 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 -- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
-- the Free Software Foundation; either version 2 of the License, or --
-- (at your option) any later version. -- 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 distributed in the hope that it will be useful, -- the Free Software Foundation; either version 2 of the License, or
-- but WITHOUT ANY WARRANTY; without even the implied warranty of -- (at your option) any later version.
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --
-- GNU General Public License for more details. -- This program is distributed in the hope that it will be useful,
-- -- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- You should have received a copy of the GNU General Public License -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- along with this program; if not, write to the Free Software -- GNU General Public License for more details.
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --
-- -- You should have received a copy of the GNU General Public License
-- $Id$ -- along with this program; if not, write to the Free Software
-- $Source$ -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-- --
-- =================================================================== -- $Id$
-- $Source$
create table llx_paiementcharge -- ===================================================================
(
rowid serial PRIMARY KEY,
fk_charge integer, create table llx_paiementcharge
datec timestamp without time zone, -- date de creation (
tms timestamp, rowid SERIAL PRIMARY KEY,
datep timestamp without time zone, -- payment date "fk_charge" integer,
amount real DEFAULT 0, "datec" datetime, -- date de creation
fk_typepaiement integer NOT NULL, "tms" timestamp,
num_paiement varchar(50), "datep" datetime, -- payment date
note text, "amount" real DEFAULT 0,
fk_bank integer NOT NULL, "fk_typepaiement" integer NOT NULL,
fk_user_creat integer, -- utilisateur qui a cr<63><72> l'info "num_paiement" varchar(50),
fk_user_modif integer -- utilisateur qui a modifi<66> l'info "note" text,
"fk_bank" integer NOT NULL,
); "fk_user_creat" integer, -- utilisateur qui a cr<63><72> l'info
"fk_user_modif" integer -- utilisateur qui a modifi<66> l'info
);

View File

@@ -1,37 +1,40 @@
-- =================================================================== -- Generated from dolibarr_mysql2pgsql
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org> -- (c) 2004, PostgreSQL Inc.
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be> -- (c) 2005, Laurent Destailleur.
--
-- 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 -- Copyright (C) 2003-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- the Free Software Foundation; either version 2 of the License, or -- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
-- (at your option) any later version. --
-- -- This program is free software; you can redistribute it and/or modify
-- This program is distributed in the hope that it will be useful, -- it under the terms of the GNU General Public License as published by
-- but WITHOUT ANY WARRANTY; without even the implied warranty of -- the Free Software Foundation; either version 2 of the License, or
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- (at your option) any later version.
-- GNU General Public License for more details. --
-- -- This program is distributed in the hope that it will be useful,
-- You should have received a copy of the GNU General Public License -- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- along with this program; if not, write to the Free Software -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -- GNU General Public License for more details.
-- --
-- $Id$ -- You should have received a copy of the GNU General Public License
-- $Source$ -- along with this program; if not, write to the Free Software
-- -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-- =================================================================== --
-- $Id$
create table llx_paiementfourn -- $Source$
( -- ===================================================================
rowid SERIAL PRIMARY KEY,
tms timestamp, create table llx_paiementfourn
datec timestamp without time zone, -- date de creation de l'enregistrement (
fk_facture_fourn integer, -- facture rowid SERIAL PRIMARY KEY,
datep timestamp without time zone, -- date de paiement "tms" timestamp,
amount real DEFAULT 0, -- montant "datec" datetime, -- date de creation de l'enregistrement
fk_user_author integer, -- auteur "fk_facture_fourn" integer, -- facture
fk_paiement integer NOT NULL, -- moyen de paiement "datep" datetime, -- date de paiement
num_paiement varchar(50), -- num<75>ro de paiement (cheque) "amount" real DEFAULT 0, -- montant
note text, "fk_user_author" integer, -- auteur
fk_bank integer NOT NULL "fk_paiement" integer NOT NULL, -- moyen de paiement
); "num_paiement" varchar(50), -- num<75>ro de paiement (cheque)
"note" text,
"fk_bank" integer NOT NULL
);

Some files were not shown because too many files have changed in this diff Show More