delete table before inserting faker data

This commit is contained in:
Manuel Raynaud
2013-04-30 14:56:23 +02:00
parent 15610f8506
commit 7d766c68ff
10 changed files with 130 additions and 121 deletions

View File

@@ -50,7 +50,7 @@ class ProductTableMap extends TableMap
$this->addColumn('ecotax', 'Ecotax', 'FLOAT', false, null, null);
$this->addColumn('newness', 'Newness', 'TINYINT', false, null, 0);
$this->addColumn('promo', 'Promo', 'TINYINT', false, null, 0);
$this->addColumn('stock', 'Stock', 'INTEGER', false, null, 0);
$this->addColumn('quantity', 'Quantity', 'INTEGER', false, null, 0);
$this->addColumn('visible', 'Visible', 'TINYINT', true, null, 0);
$this->addColumn('weight', 'Weight', 'FLOAT', false, null, null);
$this->addColumn('position', 'Position', 'INTEGER', true, null, null);

View File

@@ -50,7 +50,7 @@ class ProductVersionTableMap extends TableMap
$this->addColumn('ecotax', 'Ecotax', 'FLOAT', false, null, null);
$this->addColumn('newness', 'Newness', 'TINYINT', false, null, 0);
$this->addColumn('promo', 'Promo', 'TINYINT', false, null, 0);
$this->addColumn('stock', 'Stock', 'INTEGER', false, null, 0);
$this->addColumn('quantity', 'Quantity', 'INTEGER', false, null, 0);
$this->addColumn('visible', 'Visible', 'TINYINT', true, null, 0);
$this->addColumn('weight', 'Weight', 'FLOAT', false, null, null);
$this->addColumn('position', 'Position', 'INTEGER', true, null, null);