mirror of
https://github.com/JustKato/FreePad.git
synced 2026-02-24 00:00:46 +02:00
+ Restructuring!
This commit is contained in:
1
dist/db/migrations/000001_posts.down.sql
vendored
Normal file
1
dist/db/migrations/000001_posts.down.sql
vendored
Normal file
@@ -0,0 +1 @@
|
||||
DROP TABLE IF EXISTS t_posts;
|
||||
12
dist/db/migrations/000001_posts.up.sql
vendored
Normal file
12
dist/db/migrations/000001_posts.up.sql
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
CREATE TABLE IF NOT EXISTS `t_posts` (
|
||||
`id` INT(11) NOT NULL AUTO_INCREMENT,
|
||||
`name` VARCHAR(256) NOT NULL DEFAULT '' COLLATE 'latin1_swedish_ci',
|
||||
`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,
|
||||
UNIQUE INDEX `name` (`name`) USING BTREE
|
||||
)
|
||||
COLLATE='latin1_swedish_ci'
|
||||
ENGINE=InnoDB
|
||||
;
|
||||
Reference in New Issue
Block a user