-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.php
More file actions
35 lines (29 loc) · 1.1 KB
/
install.php
File metadata and controls
35 lines (29 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
$path = OW::getPluginManager()->getPlugin('spodnotification')->getRootDir() . 'langs.zip';
BOL_LanguageService::getInstance()->importPrefixFromZip($path, 'spodnotification');
OW::getPluginManager()->addPluginSettingsRouteName('spodnotification', 'notification-settings');
$sql = 'CREATE TABLE IF NOT EXISTS `' . OW_DB_PREFIX . 'spod_notification_notification` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`notification` text,
`timestamp` int(11),
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ;
CREATE TABLE IF NOT EXISTS `' . OW_DB_PREFIX . 'spod_notification_registered_user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`userId` int(11) NOT NULL,
`type` text,
`plugin` text,
`action` text,
`parentAction` text,
`frequency` text,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ;
CREATE TABLE IF NOT EXISTS `' . OW_DB_PREFIX . 'spod_notification_user_registration_id` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`userId` int(11) NOT NULL,
`registrationId` text,
`timestamp` int(11),
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ;
';
OW::getDbo()->query($sql);