Skip to content
This repository has been archived by the owner on May 18, 2021. It is now read-only.

Commit

Permalink
Merge pull request #17 from DenisPodgurskiy/master
Browse files Browse the repository at this point in the history
Fix timestamp issue
  • Loading branch information
DenisPodgurskiy committed Sep 27, 2017
2 parents 5cbf811 + 2cffd05 commit 4b8d9ed
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions database/db.sql
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ CREATE TABLE `tbl_brand` (
DROP TABLE IF EXISTS `tbl_cart`;
CREATE TABLE `tbl_cart` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`items_count` int(10) unsigned DEFAULT '0',
`items_qty` int(10) unsigned DEFAULT '0',
Expand All @@ -61,7 +61,7 @@ DROP TABLE IF EXISTS `tbl_cart_items`;
CREATE TABLE `tbl_cart_items` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`cart_id` int(10) unsigned NOT NULL DEFAULT '0',
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`product_id` int(10) unsigned DEFAULT NULL,
`name` varchar(255) DEFAULT NULL,
Expand Down Expand Up @@ -246,7 +246,7 @@ CREATE TABLE `tbl_news` (
DROP TABLE IF EXISTS `tbl_orders`;
CREATE TABLE `tbl_orders` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`customer_firstname` varchar(60) DEFAULT NULL,
`customer_lastname` varchar(60) DEFAULT NULL,
Expand Down Expand Up @@ -284,7 +284,7 @@ DROP TABLE IF EXISTS `tbl_order_items`;
CREATE TABLE `tbl_order_items` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`cart_id` int(10) unsigned NOT NULL DEFAULT '0',
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`product_id` int(10) unsigned DEFAULT NULL,
`name` varchar(255) DEFAULT NULL,
Expand Down

0 comments on commit 4b8d9ed

Please sign in to comment.