Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CREATE TABLE IF NOT EXISTS `app`.`token` (
- `id` INT NOT NULL AUTO_INCREMENT,
- `token` VARCHAR(64) NOT NULL,
- `creation_date` DATETIME NOT NULL DEFAULT NOW(),
- `expiration_date` DATETIME NOT NULL DEFAULT NOW() + INTERVAL 1 HOUR,
- PRIMARY KEY (`id`))
- ENGINE = InnoDB;
- #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '+ INTERVAL 1 HOUR,
- PRIMARY KEY (`id`))
- ENGINE = InnoDB' at line 5
- INSERT INTO `app`.`token` (`token`,`expiration_date`) VALUES ('b1ae528de7ec8355a655926fcb84397f5d21d604e232b6567471c84610a171a8', NOW() + INTERVAL 1 HOUR);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement