1-- Create notification providers table.
2CREATE TABLE IF NOT EXISTS `tblnotificationproviders` (
3 `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
4 `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
5 `settings` text COLLATE utf8_unicode_ci NOT NULL,
6 `active` tinyint(4) NOT NULL DEFAULT 0,
7 `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
8 `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
9 PRIMARY KEY (`id`)
10) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ;
11
12-- Create notification rules table.
13CREATE TABLE IF NOT EXISTS `tblnotificationrules` (
14 `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
15 `description` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
16 `event_type` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
17 `events` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
18 `conditions` text COLLATE utf8_unicode_ci NOT NULL,
19 `provider` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
20 `provider_config` text COLLATE utf8_unicode_ci NOT NULL,
21 `active` tinyint(4) NOT NULL DEFAULT 0,
22 `can_delete` tinyint(4) NOT NULL DEFAULT 0,
23 `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
24 `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
25 PRIMARY KEY (`id`)
26) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ;
27
28-- Add notifications permission to full administrator role.
29INSERT INTO `tbladminperms` (`roleid`, `permid`) VALUES ('1', '144');
30