Skip to content
Snippets Groups Projects
Commit ebb74827 authored by Ghislain Loas's avatar Ghislain Loas
Browse files

hotline #46627 upgrade libelle field size in sql to 255

parent e1db1fdf
Branches
Tags
4 merge requests!1797Master,!1746Master,!1745Hotline master,!1742Hotline#46627 fix selection edition
......@@ -2,5 +2,5 @@
$adapter = Zend_Db_Table_Abstract::getDefaultAdapter();
try {
$adapter->query('ALTER TABLE notices_paniers DROP INDEX user_panier, DROP COLUMN id_panier');
$adapter->query('ALTER TABLE notices_paniers DROP INDEX user_panier, DROP COLUMN id_panier, MODIFY libelle VARCHAR(255)');
} catch(Exception $e) {}
......@@ -866,6 +866,7 @@ class UpgradeDB_304_Test extends UpgradeDBTestCase {
$this->query('ALTER TABLE notices_paniers ADD COLUMN id_panier int(11) NOT NULL');
$this->query('UPDATE notices_paniers SET id_panier = id');
$this->query('ALTER TABLE notices_paniers ADD CONSTRAINT user_panier UNIQUE (id_user, id_panier)');
$this->query('ALTER TABLE notices_paniers MODIFY libelle VARCHAR(50)');
} catch(Exception $e) {
}
}
......@@ -881,4 +882,10 @@ class UpgradeDB_304_Test extends UpgradeDBTestCase {
public function uniqueIndexUserPanierShouldNotExist() {
$this->assertNotIndex('notices_paniers', 'user_panier');
}
/** @test */
public function libelleShouldBeVarChar255() {
$this->assertFieldType('notices_paniers','libelle', '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