From 71be6cf239fba5718cd6336403df602b05c21c7d Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Mon, 7 Dec 2009 18:11:26 -0800 Subject: The rest framework that the new gallery3 remote interface will be built on. At the moment, there are no handlers to perform any functionality. --- modules/rest/helpers/rest_installer.php | 37 +++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 modules/rest/helpers/rest_installer.php (limited to 'modules/rest/helpers/rest_installer.php') diff --git a/modules/rest/helpers/rest_installer.php b/modules/rest/helpers/rest_installer.php new file mode 100644 index 00000000..274002c0 --- /dev/null +++ b/modules/rest/helpers/rest_installer.php @@ -0,0 +1,37 @@ +query("CREATE TABLE {rest_keys} ( + `id` int(9) NOT NULL auto_increment, + `user_id` int(9) NOT NULL, + `access_key` char(32) NOT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY(`access_key`), + UNIQUE KEY(`user_id`)) + DEFAULT CHARSET=utf8;"); + module::set_version("rest", 1); + } + + static function uninstall() { + Database::instance()->query("DROP TABLE IF EXISTS {rest_keys}"); + } +} -- cgit v1.2.3