1
0
mirror of https://github.com/JustKato/FreePad.git synced 2026-02-23 15:50:46 +02:00

+ Database insertion/overwriting

+ Helper
This commit is contained in:
2022-05-15 15:59:30 +03:00
parent e508d753ce
commit 0d71bf3650
5 changed files with 45 additions and 10 deletions

View File

@@ -4,7 +4,8 @@ CREATE TABLE IF NOT EXISTS `t_posts` (
`content` MEDIUMTEXT NOT NULL COLLATE 'latin1_swedish_ci',
`ts` DATETIME NOT NULL DEFAULT current_timestamp(),
`ts_updated` DATETIME NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
PRIMARY KEY (`id`) USING BTREE
PRIMARY KEY (`id`) USING BTREE,
UNIQUE INDEX `name` (`name`) USING BTREE
)
COLLATE='latin1_swedish_ci'
ENGINE=InnoDB