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:
Tim Almdal
2009-12-08 09:19:48 -08:00
parent b0de1fe1d9
commit fa0663d7df
7 changed files with 116 additions and 77 deletions
+2 -2
View File
@@ -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}");
}
}