diff --git a/mysql/tables/llx_album.sql b/mysql/tables/llx_album.sql new file mode 100644 index 00000000000..0c410e0e255 --- /dev/null +++ b/mysql/tables/llx_album.sql @@ -0,0 +1,35 @@ +-- ============================================================================ +-- Copyright (C) 2003 Rodolphe Quiedeville +-- +-- 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_album +( + rowid integer AUTO_INCREMENT PRIMARY KEY, + osc_id integer NOT NULL, + tms timestamp, + ref varchar(12), + title varchar(64), + annee smallint(64), + description text, + collectif tinyint, + fk_user_author integer +); + diff --git a/mysql/tables/llx_album_to_groupart.sql b/mysql/tables/llx_album_to_groupart.sql new file mode 100644 index 00000000000..1fcad296a5f --- /dev/null +++ b/mysql/tables/llx_album_to_groupart.sql @@ -0,0 +1,29 @@ +-- ============================================================================ +-- Copyright (C) 2003 Rodolphe Quiedeville +-- +-- 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_album_to_groupart +( + fk_album integer NOT NULL, + fk_groupart integer NOT NULL +); + +alter table llx_album_to_groupart add unique key (fk_album, fk_groupart); diff --git a/mysql/tables/llx_appro.sql b/mysql/tables/llx_appro.sql new file mode 100644 index 00000000000..411619ead9c --- /dev/null +++ b/mysql/tables/llx_appro.sql @@ -0,0 +1,33 @@ +-- ============================================================================ +-- Copyright (C) 2003 Rodolphe Quiedeville +-- +-- 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_appro +( + rowid integer AUTO_INCREMENT PRIMARY KEY, + datec datetime, + tms timestamp, + fk_product integer NOT NULL, + quantity smallint unsigned NOT NULL, + price real, + fk_user_author integer +); + diff --git a/mysql/tables/llx_concert.sql b/mysql/tables/llx_concert.sql new file mode 100644 index 00000000000..d7714d6a2ca --- /dev/null +++ b/mysql/tables/llx_concert.sql @@ -0,0 +1,34 @@ +-- ============================================================================ +-- Copyright (C) 2003 Rodolphe Quiedeville +-- +-- 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_concert +( + rowid integer AUTO_INCREMENT PRIMARY KEY, + tms timestamp, + date_concert datetime NOT NULL, + description text, + collectif tinyint DEFAULT 0 NOT NULL, + fk_groupart integer, + fk_lieu_concert integer, + fk_user_author integer +); + diff --git a/mysql/tables/llx_groupart.sql b/mysql/tables/llx_groupart.sql new file mode 100644 index 00000000000..56a2ceba01e --- /dev/null +++ b/mysql/tables/llx_groupart.sql @@ -0,0 +1,32 @@ +-- ============================================================================ +-- Copyright (C) 2003 Rodolphe Quiedeville +-- +-- 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_groupart +( + rowid integer AUTO_INCREMENT PRIMARY KEY, + osc_id integer NOT NULL, + tms timestamp, + nom varchar(64), + groupart enum("artiste","groupe") NOT NULL, + fk_user_author integer +); + diff --git a/mysql/tables/llx_lieu_concert.sql b/mysql/tables/llx_lieu_concert.sql new file mode 100644 index 00000000000..88408a7da74 --- /dev/null +++ b/mysql/tables/llx_lieu_concert.sql @@ -0,0 +1,32 @@ +-- ============================================================================ +-- Copyright (C) 2003 Rodolphe Quiedeville +-- +-- 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_lieu_concert +( + rowid integer AUTO_INCREMENT PRIMARY KEY, + tms timestamp, + nom varchar(64) NOT NULL, + description text, + ville varchar(64) NOT NULL, + fk_user_author integer +); +