diff --git a/mysql/migration/1.1.0-1.2.0-RC1.sql b/mysql/migration/1.1.0-1.2.0-RC1.sql index 52ca8b0c0e5..bb6edb1daa6 100644 --- a/mysql/migration/1.1.0-1.2.0-RC1.sql +++ b/mysql/migration/1.1.0-1.2.0-RC1.sql @@ -54,6 +54,9 @@ alter table llx_bank_account add adresse_proprio varchar(255) after proprio ; alter table llx_paiement add fk_bank integer NOT NULL after note ; alter table llx_paiementfourn add fk_bank integer NOT NULL after note ; +alter table llx_birthday_alert rename llx_user_alert ; +alter table llx_user_alert add type integer after rowid; +update llx_user_alert set type=1 where type is null; alter table c_paiement rename llx_c_paiement ; alter table c_propalst rename llx_c_propalst ; diff --git a/mysql/tables/llx_user_alert.sql b/mysql/tables/llx_user_alert.sql new file mode 100644 index 00000000000..b2ca9a94148 --- /dev/null +++ b/mysql/tables/llx_user_alert.sql @@ -0,0 +1,30 @@ +-- ============================================================================ +-- Copyright (C) 2004 Rodolphe Quiedeville +-- Copyright (C) 2004 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 +-- (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_user_alert +( + rowid integer AUTO_INCREMENT PRIMARY KEY, + type integer, + fk_contact integer, -- pointe sur llx_socpeople + fk_user integer +)type=innodb;