1
0

Dropped owner_id, it can be derived via the item. Added global_hash

This commit is contained in:
Chad Kieffer 2010-12-26 16:18:07 -07:00
parent a63742ac9d
commit d422f581a4
2 changed files with 2 additions and 4 deletions

View File

@ -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");

View File

@ -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);