summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--application/migrations/009_add_apikeys.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/application/migrations/009_add_apikeys.php b/application/migrations/009_add_apikeys.php
index bdc4dd07d..8f2882e49 100644
--- a/application/migrations/009_add_apikeys.php
+++ b/application/migrations/009_add_apikeys.php
@@ -10,7 +10,7 @@ class Migration_Add_apikeys extends CI_Migration {
CREATE TABLE "apikeys" (
"key" varchar(64) NOT NULL,
"user" integer NOT NULL,
- "created" integer NOT NULL,
+ "created" timestamp WITH TIME ZONE NOT NULL DEFAULT NOW(),
"comment" varchar(255) NOT NULL,
PRIMARY KEY ("key")
);