diff --git a/VERSIONS_HOTLINE/128644 b/VERSIONS_HOTLINE/128644 new file mode 100644 index 0000000000000000000000000000000000000000..7c5ba33fc12c03114d6b0204b0a5989251c63b96 --- /dev/null +++ b/VERSIONS_HOTLINE/128644 @@ -0,0 +1 @@ + - ticket #128644 : Codification Genre : Augmenter la taille du libellé \ No newline at end of file diff --git a/cosmogramme/sql/patch/patch_412.php b/cosmogramme/sql/patch/patch_412.php new file mode 100644 index 0000000000000000000000000000000000000000..58e68dba5e80db1011bced1dbe337f4e3033c03e --- /dev/null +++ b/cosmogramme/sql/patch/patch_412.php @@ -0,0 +1,7 @@ +<?php +$adapter = Zend_Db_Table::getDefaultAdapter(); + +try { + $adapter->query("alter table `codif_genre` modify `libelle` varchar(255)"); +} catch(Exception $e) { +} diff --git a/tests/db/UpgradeDBTest.php b/tests/db/UpgradeDBTest.php index 79c5411c7ba6aacdea07d833d2cf083cd90a9341..cbecb361d13c1e19489b465a73f3804b6b142b12 100644 --- a/tests/db/UpgradeDBTest.php +++ b/tests/db/UpgradeDBTest.php @@ -3896,3 +3896,20 @@ class UpgradeDB_411_Test extends UpgradeDBTestCase { $this->assertFieldType('album_usage_report', $field, $type); } } + + + + +/* hotline: #128644 */ +class UpgradeDB_412_Test extends UpgradeDBTestCase { + + public function prepare() { + $this->silentQuery('ALTER TABLE `codif_genre` MODIFY `libelle` varchar(50)'); + } + + + /** @test */ + public function tableCodifGenreShouldHaveColumnLibelleWithTypeVarchar255() { + $this->assertFieldType('codif_genre', 'libelle', 'varchar(255)'); + } +}