From 5919c771e9cf3c3edfc62dfb1ac6bddf1cfc9732 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Fri, 21 Feb 2014 23:24:01 +0100 Subject: Implement multiple access levels for api keys This allows to use an api key to write a completly standalone client. Signed-off-by: Florian Pritz --- .../migrations/011_apikeys_add_access_level.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 application/migrations/011_apikeys_add_access_level.php (limited to 'application/migrations') diff --git a/application/migrations/011_apikeys_add_access_level.php b/application/migrations/011_apikeys_add_access_level.php new file mode 100644 index 000000000..e0f39317b --- /dev/null +++ b/application/migrations/011_apikeys_add_access_level.php @@ -0,0 +1,19 @@ +db->query(" + alter table `apikeys` add `access_level` varchar(255) default 'apikey'; + "); + } + + public function down() + { + $this->db->query(" + alter table `apikeys` drop `access_level`; + "); + } +} -- cgit v1.2.3-24-g4f1b