[News] Added plain text

This commit is contained in:
Dennis Eichhorn 2016-11-23 23:49:41 +01:00
parent 6014a13e4a
commit 51c5c5ef58
2 changed files with 2 additions and 0 deletions

View File

@ -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,

View File

@ -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'],