From 51c5c5ef588a0f5760948b5e55923b48f8c20696 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Wed, 23 Nov 2016 23:49:41 +0100 Subject: [PATCH] [News] Added plain text --- Admin/Installer.php | 1 + Models/NewsArticleMapper.php | 1 + 2 files changed, 2 insertions(+) diff --git a/Admin/Installer.php b/Admin/Installer.php index f9a7c51..7b36309 100644 --- a/Admin/Installer.php +++ b/Admin/Installer.php @@ -49,6 +49,7 @@ class Installer extends InstallerAbstract `news_title` varchar(250) NOT NULL, `news_featured` tinyint(1) DEFAULT NULL, `news_content` text NOT NULL, + `news_plain` text NOT NULL, `news_type` tinyint(2) NOT NULL, `news_status` tinyint(1) NOT NULL, `news_lang` varchar(2) NOT NULL, diff --git a/Models/NewsArticleMapper.php b/Models/NewsArticleMapper.php index 7726144..1b59626 100644 --- a/Models/NewsArticleMapper.php +++ b/Models/NewsArticleMapper.php @@ -35,6 +35,7 @@ class NewsArticleMapper extends DataMapperAbstract 'news_created_by' => ['name' => 'news_created_by', 'type' => 'string', 'internal' => 'createdBy'], 'news_publish' => ['name' => 'news_publish', 'type' => 'DateTime', 'internal' => 'publish'], 'news_title' => ['name' => 'news_title', 'type' => 'string', 'internal' => 'title'], + 'news_plain' => ['name' => 'news_plain', 'type' => 'string', 'internal' => 'plain'], 'news_content' => ['name' => 'news_content', 'type' => 'string', 'internal' => 'content'], 'news_lang' => ['name' => 'news_lang', 'type' => 'string', 'internal' => 'language'], 'news_status' => ['name' => 'news_status', 'type' => 'int', 'internal' => 'status'],