Skip to content

Commit

Permalink
defaults for timestamps
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaaz committed May 8, 2018
1 parent 33876eb commit af59f39
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/resources/db_updates/000_001_initial_version.sql
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ CREATE TABLE IF NOT EXISTS `banks` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`user` INT(11) NOT NULL,
`current_balance` INT(11) DEFAULT NULL,
`created_on` TIMESTAMP NULL DEFAULT '0000-00-00 00:00:00',
`created_on` TIMESTAMP NULL DEFAULT NULL,
PRIMARY KEY (`id`)
)
ENGINE = InnoDB
Expand All @@ -18,7 +18,7 @@ CREATE TABLE IF NOT EXISTS `bank_reserverations` (
`bank` INT(11) NOT NULL,
`amount` INT(11) NOT NULL,
`reason` VARCHAR(255) DEFAULT NULL,
`reservation_time` TIMESTAMP NULL DEFAULT '0000-00-00 00:00:00',
`reservation_time` TIMESTAMP NULL DEFAULT NULL,
PRIMARY KEY (`id`)
)
ENGINE = InnoDB
Expand All @@ -30,7 +30,7 @@ CREATE TABLE IF NOT EXISTS `bank_transactions` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`bank_from` INT(11) NOT NULL,
`bank_to` INT(11) NOT NULL,
`transaction_date` TIMESTAMP NULL DEFAULT '0000-00-00 00:00:00',
`transaction_date` TIMESTAMP NULL DEFAULT NULL,
`description` VARCHAR(255) DEFAULT NULL,
PRIMARY KEY (`id`)
)
Expand Down

0 comments on commit af59f39

Please sign in to comment.