allow token to be null in cart table
This commit is contained in:
@@ -20,6 +20,28 @@ try {
|
||||
->find();
|
||||
$product->delete();
|
||||
|
||||
$customer = Thelia\Model\CustomerQuery::create()
|
||||
->find();
|
||||
$customer->delete();
|
||||
|
||||
$customer = new Thelia\Model\Customer();
|
||||
$customer->createOrUpdate(
|
||||
1,
|
||||
"thelia",
|
||||
"thelia",
|
||||
"5 rue rochon",
|
||||
"",
|
||||
"",
|
||||
"0102030405",
|
||||
"0601020304",
|
||||
"63000",
|
||||
"clermont-ferrand",
|
||||
64,
|
||||
"test@thelia.net",
|
||||
"azerty"
|
||||
);
|
||||
|
||||
|
||||
//first category
|
||||
$sweet = new Thelia\Model\Category();
|
||||
$sweet->setParent(0);
|
||||
|
||||
@@ -1271,7 +1271,7 @@ DROP TABLE IF EXISTS `cart`;
|
||||
CREATE TABLE `cart`
|
||||
(
|
||||
`id` INTEGER NOT NULL AUTO_INCREMENT,
|
||||
`token` VARCHAR(255) NOT NULL,
|
||||
`token` VARCHAR(255),
|
||||
`customer_id` INTEGER,
|
||||
`address_delivery_id` INTEGER,
|
||||
`address_invoice_id` INTEGER,
|
||||
|
||||
Reference in New Issue
Block a user