Dropped owner_id, it can be derived via the item. Added global_hash
This commit is contained in:
parent
a6bc9ab2db
commit
38f1d0c4b7
@ -194,9 +194,7 @@ class bitly_Core {
|
||||
$link = ORM::factory("bitly_link");
|
||||
$link->item_id = $item_id;
|
||||
$link->hash = $json_response->data->hash;
|
||||
//$link->global_hash = $json_response->data->global_hash;
|
||||
//$new_hash = $json_response->data->new_hash;
|
||||
$link->owner_id = $item->owner_id;
|
||||
$link->global_hash = $json_response->data->global_hash;
|
||||
$link->save();
|
||||
|
||||
message::success("$long_url has been shortened to $short_url");
|
||||
|
@ -25,7 +25,7 @@ class bitly_installer {
|
||||
`id` int(9) NOT NULL AUTO_INCREMENT,
|
||||
`item_id` int(9) NOT NULL,
|
||||
`hash` char(6) NOT NULL,
|
||||
`owner_id` int(9) NOT NULL,
|
||||
`global_hash` char(6) NOT NULL,
|
||||
PRIMARY KEY (`id`))
|
||||
DEFAULT CHARSET=utf8;");
|
||||
module::set_version("bitly", 1);
|
||||
|
Reference in New Issue
Block a user