Skip to content

Commit

Permalink
Add time field #17
Browse files Browse the repository at this point in the history
  • Loading branch information
Clidus committed Aug 14, 2016
1 parent d09bc1c commit 1d9a299
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions database.txt
Expand Up @@ -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'
Expand Down
3 changes: 2 additions & 1 deletion migration.md
Expand Up @@ -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.
Expand Down

0 comments on commit 1d9a299

Please sign in to comment.