diff --git a/VERSIONS_HOTLINE/76979 b/VERSIONS_HOTLINE/76979 new file mode 100644 index 0000000000000000000000000000000000000000..90d607c284990b852ed4d8a9fe4dd4ff8a877812 --- /dev/null +++ b/VERSIONS_HOTLINE/76979 @@ -0,0 +1 @@ + - ticket #76979 : Administration : longueur maximum du courriel d'un compte mise à 255 caractères \ No newline at end of file diff --git a/cosmogramme/sql/patch/patch_347.php b/cosmogramme/sql/patch/patch_347.php new file mode 100644 index 0000000000000000000000000000000000000000..39c7375951c3744a67344d26d50bb36e33a071d5 --- /dev/null +++ b/cosmogramme/sql/patch/patch_347.php @@ -0,0 +1,5 @@ +<?php +$adapter = Zend_Db_Table_Abstract::getDefaultAdapter(); +try { + $adapter->query('ALTER TABLE bib_admin_users modify mail varchar(255) not null'); +} catch(Exception $e) {} \ No newline at end of file diff --git a/tests/db/UpgradeDBTest.php b/tests/db/UpgradeDBTest.php index 4a9c4e8caaf7c3f4053af96fc81ab2c2045032f6..d0638524ce73d5a951f1df3b2b7bb26c796b10da 100644 --- a/tests/db/UpgradeDBTest.php +++ b/tests/db/UpgradeDBTest.php @@ -2087,3 +2087,19 @@ class UpgradeDB_346_Test extends UpgradeDBTestCase { /** @test */ public function placeholderForAssimilMigrationPatch() {} } + + + +class UpgradeDB_347_Test extends UpgradeDBTestCase { + public function prepare() { + try { + $this->query('ALTER TABLE bib_admin_users modify mail varchar(50) not null'); + } catch(Exception $e) {} + } + + + /** @test */ + public function mailShouldBeVarchar255() { + $this->assertFieldType('bib_admin_users', 'mail', 'varchar(255)'); + } +} \ No newline at end of file