Skip to content
Snippets Groups Projects
Commit d46ba406 authored by Patrick Barroca's avatar Patrick Barroca :grin:
Browse files

hotline #76979 : set user mail max length to 255

parent e954ca77
Branches
Tags
3 merge requests!2723Master,!2721Hotline,!2720hotline #76979 : set user mail max length to 255
Pipeline #4511 canceled with stage
in 10 seconds
- ticket #76979 : Administration : longueur maximum du courriel d'un compte mise à 255 caractères
\ No newline at end of file
<?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
......@@ -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
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