php-mpos/sql/issue_144_notification_upgrade.sql
Sebastian Grewe 3bc5c68403 Updated SQL Files
* Updated upgrade SQL
* Added full new structure
2013-06-09 16:09:32 +02:00

8 lines
405 B
SQL

ALTER TABLE `notifications` ADD `account_id` INT UNSIGNED NULL DEFAULT NULL , ADD INDEX ( `account_id` );
ALTER TABLE `notifications` CHANGE `time` `time` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP;
CREATE TABLE IF NOT EXISTS `notification_settings` (
`type` varchar(15) NOT NULL,
`account_id` int(11) NOT NULL,
`active` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;