fix listeners table create and expire federation had a syntax error

This commit is contained in:
zotlabs 2018-09-17 18:40:49 -07:00
parent fdc89d1b89
commit cc5ef57843
2 changed files with 5 additions and 5 deletions

View File

@ -60,7 +60,7 @@ class Cron {
drop_item($rr['id'],false,(($rr['item_wall']) ? DROPITEM_PHASE1 : DROPITEM_NORMAL)); drop_item($rr['id'],false,(($rr['item_wall']) ? DROPITEM_PHASE1 : DROPITEM_NORMAL));
if($rr['item_wall']) { if($rr['item_wall']) {
// The notifier isn't normally invoked unless item_drop is interactive. // The notifier isn't normally invoked unless item_drop is interactive.
Zotlabs\Daemon\Master::Summon( [ 'Notifier', 'drop', $rr['id'] ] ); Master::Summon( [ 'Notifier', 'drop', $rr['id'] ] );
} }
} }
} }

View File

@ -26,14 +26,14 @@ class _1220 {
if(ACTIVE_DBTYPE == DBTYPE_MYSQL) { if(ACTIVE_DBTYPE == DBTYPE_MYSQL) {
$r = q("CREATE TABLE IF NOT EXISTS listeners ( $r = q("CREATE TABLE IF NOT EXISTS listeners (
id int(11) NOT NULL AUTO_INCREMENT, id int(11) NOT NULL AUTO_INCREMENT,
target_id varchar(191) CHARACTER SET utf8mb4 NOT NULL DEFAULT '', target_id varchar(191) NOT NULL DEFAULT '',
portable_id varchar(191) CHARACTER SET utf8mb4 NOT NULL DEFAULT '', portable_id varchar(191) NOT NULL DEFAULT '',
ltype int(11) NOT NULL DEFAULT '0', ltype int(11) NOT NULL DEFAULT 0,
PRIMARY KEY (id), PRIMARY KEY (id),
KEY target_id (target_id), KEY target_id (target_id),
KEY portable_id (portable_id), KEY portable_id (portable_id),
KEY ltype (ltype) KEY ltype (ltype)
) ENGINE=InnoDB DEFAULT CHARSET=utf8"); ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4");
} }