Skip to content

Commit

Permalink
db + changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
hongaar committed Jun 5, 2014
1 parent 388246f commit 97c4300
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 2 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ Due to a bug in the auto-updater, updating from a version prior to v0.2.2 doesn'
- **NEW** Import media files from Google Drive
- **NEW** Export CRUD view to Excel
- **NEW** Filter on dates
- **FIX** Lots of small bugfixes
- **NEW** Revisions
- **FIX** I18n fixes
- **FIX** Lots of small bugfixes, updates and small new features


#### v0.2.7
Expand Down
53 changes: 52 additions & 1 deletion private/dev/db/v0.2.8.sql
Original file line number Diff line number Diff line change
Expand Up @@ -148,4 +148,55 @@ ALTER TABLE `submission`


ALTER TABLE `transaction` ADD COLUMN `added` timestamp NULL DEFAULT NULL COMMENT 'Added' AFTER `secret_archive`;
ALTER TABLE `user` ADD COLUMN `tester` tinyint(1) NULL DEFAULT 0 COMMENT 'Tester' AFTER `debug`;
ALTER TABLE `user` ADD COLUMN `tester` tinyint(1) NULL DEFAULT 0 COMMENT 'Tester' AFTER `debug`;


-- --------------------------------------------------------

--
-- Table structure for table `mailerlog`
--

CREATE TABLE IF NOT EXISTS `mailerlog` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
`sent_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'Sent on',
`status` tinyint(4) NOT NULL DEFAULT '0' COMMENT 'Status',
`from_name` varchar(255) DEFAULT NULL COMMENT 'Sender name',
`from_email` varchar(255) NOT NULL COMMENT 'Sender',
`to_name` varchar(255) DEFAULT NULL COMMENT 'Recipient name',
`to_email` varchar(255) NOT NULL COMMENT 'Recipient',
`subject` varchar(255) NOT NULL COMMENT 'Subject',
`body` text NOT NULL COMMENT 'Message',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=6 ;



-- --------------------------------------------------------

--
-- Table structure for table `revision`
--

CREATE TABLE IF NOT EXISTS `revision` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
`model` varchar(255) NOT NULL COMMENT 'Model',
`user` int(10) unsigned DEFAULT NULL COMMENT 'User',
`time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'Time',
`foreignkey` int(10) unsigned NOT NULL COMMENT 'Foreign key',
`field` varchar(255) NOT NULL COMMENT 'Field',
`old` text NOT NULL COMMENT 'Old value',
`new` text NOT NULL COMMENT 'New value',
PRIMARY KEY (`id`),
KEY `user` (`user`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=151 ;

--
-- Constraints for dumped tables
--

--
-- Constraints for table `revision`
--
ALTER TABLE `revision`
ADD CONSTRAINT `revision_ibfk_1` FOREIGN KEY (`user`) REFERENCES `user` (`id`) ON DELETE SET NULL ON UPDATE SET NULL;

0 comments on commit 97c4300

Please sign in to comment.