mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-23 00:04:03 -04:00
Rename the backing table from rest_keys to user_access_tokens
Implement an api to format the errors and success messages Removed the custom routing... urls are now /rest/<module_name>/<resource>
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
class rest_installer {
|
||||
static function install() {
|
||||
Database::instance()
|
||||
->query("CREATE TABLE {rest_keys} (
|
||||
->query("CREATE TABLE {user_access_tokens} (
|
||||
`id` int(9) NOT NULL auto_increment,
|
||||
`user_id` int(9) NOT NULL,
|
||||
`access_key` char(32) NOT NULL,
|
||||
@@ -32,6 +32,6 @@ class rest_installer {
|
||||
}
|
||||
|
||||
static function uninstall() {
|
||||
Database::instance()->query("DROP TABLE IF EXISTS {rest_keys}");
|
||||
Database::instance()->query("DROP TABLE IF EXISTS {user_access_tokens}");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user