1
0

Removed unneded CURRENT_TIMESTAMP defaults.

This commit is contained in:
Alexander Andreev 2023-02-05 20:02:22 +04:00
parent 081d6147b8
commit 837fec8545
Signed by: Arav
GPG Key ID: 0388CC8FAA51063F

View File

@ -1,7 +1,7 @@
-- SQLite3 -- SQLite3
CREATE TABLE IF NOT EXISTS `entry` ( CREATE TABLE IF NOT EXISTS `entry` (
`entry_id` INTEGER PRIMARY KEY NOT NULL, `entry_id` INTEGER PRIMARY KEY NOT NULL,
`created` TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP, `created` TEXT NOT NULL,
`name` TEXT NOT NULL, `name` TEXT NOT NULL,
`message` TEXT NOT NULL, `message` TEXT NOT NULL,
`website` TEXT NOT NULL, `website` TEXT NOT NULL,
@ -12,8 +12,8 @@ CREATE INDEX IF NOT EXISTS `entry_created_idx`
CREATE TABLE IF NOT EXISTS `reply` ( CREATE TABLE IF NOT EXISTS `reply` (
`entry_id` INTEGER PRIMARY KEY NOT NULL, `entry_id` INTEGER PRIMARY KEY NOT NULL,
`created` TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP, `created` TEXT NOT NULL,
`message` TEXT NOT NULL, `message` TEXT NOT NULL,
FOREIGN KEY (`entry_id`) FOREIGN KEY (`entry_id`)
REFERENCES `entry` (`entry_id`) REFERENCES `entry` (`entry_id`)
ON DELETE CASCADE ON DELETE CASCADE