Skip to content
Snippets Groups Projects
Commit 698aa422 authored by efalcy's avatar efalcy
Browse files

hotline#95311 : newsletter body text and html from TEXT to LONGTEXT

parent 62eed56a
Branches
Tags
1 merge request!3323hotline#95311 : newsletter body text and html from TEXT to LONGTEXT
Pipeline #8786 passed with stage
in 41 minutes and 45 seconds
- ticket #95311 : newsletter : ne pas tronquer les lettre d'infos contenant + de 22000 caractères UTF-8
\ No newline at end of file
<?php
$adapter = Zend_Db_Table_Abstract::getDefaultAdapter();
$adapter->query('alter table newsletter_dispatch modify body_html LONGTEXT;');
$adapter->query('alter table newsletter_dispatch modify body_text LONGTEXT;');
......@@ -2967,3 +2967,21 @@ class UpgradeDB_380_Test extends UpgradeDBTestCase {
$this->assertIndex('hold_pnb', 'subscriber_id');
}
}
class UpgradeDB_381_Test extends UpgradeDBTestCase {
public function prepare() {
$this->silentQuery('ALTER TABLE newsletter_dispatch modify body_text text');
$this->silentQuery('ALTER TABLE newsletter_dispatch modify body_html text');
}
/**
* @test
*/
public function fieldsForNewsletterBodyShouldBeLongText() {
$this->assertFieldType('newsletter_dispatch', 'body_text', 'longtext');
$this->assertFieldType('newsletter_dispatch', 'body_html', 'longtext');
}
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment