]> BookStack Code Mirror - bookstack/blobdiff - database/migrations/2019_12_29_120917_add_api_auth.php
Removed token 'client' text, avoid confusion w/ oAuth
[bookstack] / database / migrations / 2019_12_29_120917_add_api_auth.php
index c8a1a7781859c01f2cc17b8ba082958f843dab79..eff88247fab066fb9f43b118e2ba8ba752ed1231 100644 (file)
@@ -19,8 +19,8 @@ class AddApiAuth extends Migration
         Schema::create('api_tokens', function(Blueprint $table) {
             $table->increments('id');
             $table->string('name');
-            $table->string('client_id')->unique();
-            $table->string('client_secret');
+            $table->string('token_id')->unique();
+            $table->string('secret');
             $table->integer('user_id')->unsigned()->index();
             $table->date('expires_at')->index();
             $table->nullableTimestamps();