Remove api permissions table

This commit is contained in:
Dane Everitt 2018-01-14 12:05:18 -06:00
parent b566630311
commit 7aa540b895
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
12 changed files with 17 additions and 449 deletions

View file

@ -14,6 +14,7 @@ class AddLastUsedAtColumn extends Migration
public function up()
{
Schema::table('api_keys', function (Blueprint $table) {
$table->unsignedTinyInteger('key_type')->after('user_id')->default(0);
$table->timestamp('last_used_at')->after('memo')->nullable();
$table->dropColumn('expires_at');
});
@ -28,7 +29,7 @@ class AddLastUsedAtColumn extends Migration
{
Schema::table('api_keys', function (Blueprint $table) {
$table->timestamp('expires_at')->after('memo')->nullable();
$table->dropColumn('last_used_at');
$table->dropColumn('last_used_at', 'key_type');
});
}
}