Commit 1f5b5bb5 authored by Mario's avatar Mario

some queries rely on a null timestamp

parent e179e076
......@@ -165,9 +165,9 @@ function cart_dbUpgrade () {
buyer_xchan varchar(255),
buyer_altid varchar(255),
order_hash varchar(255) NOT NULL,
order_expires timestamp NOT NULL DEFAULT '0001-01-01 00:00:00',
order_checkedout timestamp NOT NULL DEFAULT '0001-01-01 00:00:00',
order_paid timestamp NOT NULL DEFAULT '0001-01-01 00:00:00',
order_expires timestamp,
order_checkedout timestamp,
order_paid timestamp,
order_currency varchar(10) DEFAULT 'USD',
order_meta text,
PRIMARY KEY (id),
......@@ -178,7 +178,7 @@ function cart_dbUpgrade () {
"CREATE TABLE cart_orderitems (
id serial NOT NULL,
order_hash varchar(255),
item_lastupdate timestamp NOT NULL DEFAULT '0001-01-01 00:00:00',
item_lastupdate timestamp,
item_type varchar(25),
item_sku varchar(25),
item_desc varchar(255),
......
Markdown is supported
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