From 4588dd11cdf8475ce002443fc7d6fda4fc9cefb3 Mon Sep 17 00:00:00 2001
From: Florian Azizian <florian.azizian@maarch.org>
Date: Wed, 29 Jul 2015 14:59:26 +0000
Subject: [PATCH] FEAT #2386 add data migration in 150

---
 core/trunk/sql/150.sql       | 3 +++
 core/trunk/sql/structure.sql | 1 +
 2 files changed, 4 insertions(+)

diff --git a/core/trunk/sql/150.sql b/core/trunk/sql/150.sql
index 41afabb7ae1..a64b2b2f3d2 100644
--- a/core/trunk/sql/150.sql
+++ b/core/trunk/sql/150.sql
@@ -246,6 +246,9 @@ ALTER TABLE listinstance ADD process_date timestamp without time zone;
 ALTER TABLE listmodels DROP COLUMN IF EXISTS title;
 ALTER TABLE listmodels ADD COLUMN title varchar(255);
 
+ALTER TABLE sendmail DROP COLUMN IF EXISTS sender_email;
+ALTER TABLE sendmail ADD COLUMN sender_email varchar(255);
+
 -- ALTER TABLE listmodels DROP COLUMN IF EXISTS description;
 -- ALTER TABLE listmodels ADD COLUMN description varchar(255);
 
diff --git a/core/trunk/sql/structure.sql b/core/trunk/sql/structure.sql
index 8169cc00561..85d7b894b22 100644
--- a/core/trunk/sql/structure.sql
+++ b/core/trunk/sql/structure.sql
@@ -3420,6 +3420,7 @@ CREATE TABLE sendmail
   email_status character varying(1) NOT NULL DEFAULT 'D',
   creation_date timestamp without time zone NOT NULL,
   send_date timestamp without time zone DEFAULT NULL,
+  sender_email character varying(255) DEFAULT NULL,
   CONSTRAINT sendmail_pkey PRIMARY KEY (email_id )
  );
 
-- 
GitLab