diff --git a/database.txt b/database.txt index 8f637e5..b8ab83c 100644 --- a/database.txt +++ b/database.txt @@ -8,6 +8,7 @@ CREATE TABLE `blog` ( `Post` text NOT NULL, `UserID` int(11) NOT NULL, `Date` date NOT NULL, + `Time` time NOT NULL, `Deck` varchar(155) DEFAULT NULL, `Image` varchar(100) DEFAULT NULL, `Published` tinyint(1) NOT NULL DEFAULT '0' diff --git a/migration.md b/migration.md index 5e5d554..37be84e 100644 --- a/migration.md +++ b/migration.md @@ -4,10 +4,11 @@ Follow the instructions bellow to migrate your Ignition database between version ### Upgrade from v0.4.1 to v0.5.0 -Add published field to blog table. +Add published and time field to blog table. ```SQL ALTER TABLE `blog` ADD `Published` BOOLEAN NOT NULL DEFAULT FALSE AFTER `Image`; +ALTER TABLE `blog` ADD `Time` TIME NOT NULL AFTER `Date`; ``` All your existing posts will be unpublished. Run this to publish them.