2018-02-16 20:42:02 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Zotlabs\Update;
|
|
|
|
|
2021-12-02 23:02:31 +00:00
|
|
|
class _1033
|
|
|
|
{
|
|
|
|
public function run()
|
|
|
|
{
|
|
|
|
$r = q("CREATE TABLE if not exists `shares` (
|
2018-02-16 20:42:02 +00:00
|
|
|
`share_id` INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY ,
|
|
|
|
`share_type` INT NOT NULL DEFAULT '0',
|
|
|
|
`share_target` INT UNSIGNED NOT NULL DEFAULT '0',
|
|
|
|
`share_xchan` CHAR( 255 ) NOT NULL DEFAULT '',
|
|
|
|
KEY `share_type` (`share_type`),
|
|
|
|
KEY `share_target` (`share_target`),
|
|
|
|
KEY `share_xchan` (`share_xchan`)
|
|
|
|
) ENGINE = MYISAM DEFAULT CHARSET = utf8");
|
|
|
|
|
2021-12-02 23:02:31 +00:00
|
|
|
// if these fail don't bother reporting it
|
2018-02-16 20:42:02 +00:00
|
|
|
|
2021-12-02 23:02:31 +00:00
|
|
|
q("drop table gcign");
|
|
|
|
q("drop table gcontact");
|
|
|
|
q("drop table glink");
|
2018-02-16 20:42:02 +00:00
|
|
|
|
2021-12-02 23:02:31 +00:00
|
|
|
if ($r)
|
|
|
|
return UPDATE_SUCCESS;
|
|
|
|
return UPDATE_FAILED;
|
|
|
|
}
|
2018-02-16 20:42:02 +00:00
|
|
|
|
|
|
|
|
|
|
|
}
|