From 4d13a0401bb4d8cebe57379c2c09a458c50999ae Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 17 Jul 2004 17:05:45 +0000 Subject: [PATCH] =?UTF-8?q?New:=20Renommage=20de=20llx=5Fbirthday=5Falert?= =?UTF-8?q?=20en=20llx=5Fuser=5Falert=20et=20ajout=20d'un=20champ=20type?= =?UTF-8?q?=20d'alerte=20afin=20de=20pouvoir=20sp=E9cifier=20d'autres=20ty?= =?UTF-8?q?pes=20d'alertes=20que=20les=20anniversaires.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mysql/migration/1.1.0-1.2.0-RC1.sql | 3 +++ mysql/tables/llx_user_alert.sql | 30 +++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 mysql/tables/llx_user_alert.sql 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;