diff --git a/VERSIONS_HOTLINE/95311 b/VERSIONS_HOTLINE/95311 new file mode 100644 index 0000000000000000000000000000000000000000..7e3bce089b8720f4ee4dc1116f8e29a17e178e5f --- /dev/null +++ b/VERSIONS_HOTLINE/95311 @@ -0,0 +1 @@ + - ticket #95311 : newsletter : ne pas tronquer les lettre d'infos contenant + de 22000 caractères UTF-8 \ No newline at end of file diff --git a/cosmogramme/sql/patch/patch_381.php b/cosmogramme/sql/patch/patch_381.php new file mode 100644 index 0000000000000000000000000000000000000000..0c5feba3c0d7968b49599062b8e8dc73c3e01977 --- /dev/null +++ b/cosmogramme/sql/patch/patch_381.php @@ -0,0 +1,4 @@ +<?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;'); diff --git a/tests/db/UpgradeDBTest.php b/tests/db/UpgradeDBTest.php index 956a2e1ec61c3e75b68d55b148b6d8700237247e..71f763afdc5dfcda8d513a6b7f637a08a7644305 100644 --- a/tests/db/UpgradeDBTest.php +++ b/tests/db/UpgradeDBTest.php @@ -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'); + } +}