-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.php
30 lines (25 loc) · 992 Bytes
/
install.php
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
<?php
function extension_install_browseractivity()
{
$commonObject = new ExtensionCommon;
$commonObject -> sqlQuery(
"CREATE TABLE IF NOT EXISTS `browseractivity` (
`ID` INTEGER NOT NULL AUTO_INCREMENT,
`HARDWARE_ID` INTEGER NOT NULL,
`DOMAIN` VARCHAR(255) DEFAULT NULL, # https://stackoverflow.com/questions/14402407/maximum-length-of-a-domain-name-without-the-http-www-com-parts
`TITLE` VARCHAR(255) DEFAULT NULL, # has no limit, best practice is 60
`PROTOCOL` VARCHAR(8) DEFAULT NULL,
`USERNAME` VARCHAR(128) DEFAULT NULL, # https://stackoverflow.com/questions/704891/windows-username-maximum-length
`VISITTIME` BIGINT NOT NULL,
PRIMARY KEY (ID,HARDWARE_ID)) ENGINE=INNODB;"
);
}
function extension_delete_browseractivity()
{
$commonObject = new ExtensionCommon;
$commonObject -> sqlQuery("DROP TABLE IF EXISTS `browseractivity`");
}
function extension_upgrade_browseractivity()
{
}
?>