Commit 7444da10 authored by Ghislain Loas's avatar Ghislain Loas
Browse files

hotline #78215 fix profile mail_site column size

parent 1a2fea55
Pipeline #4733 failed with stage
in 47 minutes and 51 seconds
- ticket #78215 : Administration : élargissement du champs "E-mail du webmestre" des profils de 50 à 255 caratères.
\ No newline at end of file
<?php
try {
$adapter = Zend_Db_Table_Abstract::getDefaultAdapter();
$adapter->query('ALTER TABLE bib_admin_profil modify mail_site varchar(255) not null');
$adapter->query('ALTER TABLE bib_admin_profil modify libelle varchar(255) not null');
$adapter->query('ALTER TABLE bib_admin_profil modify commentaire mediumtext not null');
} catch(Exception $e) {}
......@@ -2176,3 +2176,34 @@ class UpgradeDB_351_Test extends UpgradeDBTestCase {
/** @test */
public function placeholderForToutApprendreMigrationPatch() {}
}
class UpgradeDB_352_Test extends UpgradeDBTestCase {
public function prepare() {
$this->silentQuery('ALTER TABLE bib_admin_profil modify mail_site varchar(50) not null');
$this->silentQuery('ALTER TABLE bib_admin_profil modify libelle varchar(50) not null');
$this->silentQuery('ALTER TABLE bib_admin_profil modify commentaire varchar(250) not null');
}
public function datas() {
return
[
['mail_site', 'varchar(255)'],
['libelle', 'varchar(255)'],
['commentaire', 'mediumtext']
];
}
/**
* @test
* @dataProvider datas
*/
public function fieldsShouldExists($field, $type) {
$this->assertFieldType('bib_admin_profil', $field, $type);
}
}
\ No newline at end of file
Markdown is supported
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