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

dev #53936 enlarge profiles configuration columns

parent 5ef5486d
Branches
Tags
4 merge requests!2080Sandbox detach zf from storm,!2061Master,!2018Dev#53936 bonus parametrage notice appliquer a d autres profilstype de doc,!2017Dev#53936 bonus parametrage notice appliquer a d autres profilstype de doc
Pipeline #375 passed with stage
in 20 minutes and 53 seconds
<?php
error_reporting(E_ERROR | E_PARSE);
define("PATCH_LEVEL","316");
define("PATCH_LEVEL","317");
define("APPLI","cosmogramme");
define("COSMOPATH", "/var/www/html/vhosts/opac2/www/htdocs");
......
<?php
try {
$adapter = Zend_Db_Table_Abstract::getDefaultAdapter();
foreach(['CFG_SITE', 'CFG_ACCUEIL', 'CFG_MODULES', 'CFG_NOTICE'] as $key)
$adapter->query('ALTER TABLE bib_admin_profil MODIFY ' . $key . ' mediumtext NOT NULL');
} catch(Exception $e) {}
......@@ -1221,4 +1221,34 @@ class UpgradeDB_316_Test extends UpgradeDBTestCase {
$this->assertField('codif_section','id_section', 'PRI', 'Key');
$this->assertField('codif_section','id_section', 'NO', 'Null');
}
}
class UpgradeDB_317_Test extends UpgradeDBTestCase {
protected $_columns = ['CFG_SITE', 'CFG_ACCUEIL', 'CFG_MODULES', 'CFG_NOTICE'];
public function prepare() {
try {
foreach($this->_columns as $key)
$this->query("ALTER TABLE bib_admin_profil MODIFY " . $key . " text NOT NULL");
} catch (Exception $e) {
var_dump($e);
}
}
public function datas() {
return array_map(function($item) { return [$item]; },
$this->_columns);
}
/**
* @test
* @dataProvider datas
**/
public function fieldsShouldBecomeMediumtext($key) {
$this->assertFieldType('bib_admin_profil', $key, 'mediumtext');
}
}
\ 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