fix tests
This commit is contained in:
@@ -225,7 +225,7 @@ try {
|
||||
for($i=0; $i<4; $i++) {
|
||||
$feature = new Thelia\Model\Feature();
|
||||
$feature->setVisible(1);
|
||||
//$feature->setPosition($i);
|
||||
$feature->setPosition($i);
|
||||
setI18n($faker, $feature);
|
||||
|
||||
$feature->save();
|
||||
@@ -249,7 +249,7 @@ try {
|
||||
$attributeList = array();
|
||||
for($i=0; $i<4; $i++) {
|
||||
$attribute = new Thelia\Model\Attribute();
|
||||
//$attribute->setPosition($i);
|
||||
$attribute->setPosition($i);
|
||||
setI18n($faker, $attribute);
|
||||
|
||||
$attribute->save();
|
||||
|
||||
@@ -186,6 +186,7 @@ CREATE TABLE `feature`
|
||||
(
|
||||
`id` INTEGER NOT NULL AUTO_INCREMENT,
|
||||
`visible` INTEGER DEFAULT 0,
|
||||
`position` INTEGER,
|
||||
`created_at` DATETIME,
|
||||
`updated_at` DATETIME,
|
||||
PRIMARY KEY (`id`)
|
||||
@@ -286,6 +287,7 @@ DROP TABLE IF EXISTS `attribute`;
|
||||
CREATE TABLE `attribute`
|
||||
(
|
||||
`id` INTEGER NOT NULL AUTO_INCREMENT,
|
||||
`position` INTEGER,
|
||||
`created_at` DATETIME,
|
||||
`updated_at` DATETIME,
|
||||
PRIMARY KEY (`id`)
|
||||
@@ -387,7 +389,6 @@ CREATE TABLE `attribute_template`
|
||||
`attribute_id` INTEGER NOT NULL,
|
||||
`template_id` INTEGER NOT NULL,
|
||||
`position` INTEGER,
|
||||
`attribute_templatecol` VARCHAR(45),
|
||||
`created_at` DATETIME,
|
||||
`updated_at` DATETIME,
|
||||
PRIMARY KEY (`id`),
|
||||
|
||||
Reference in New Issue
Block a user