]> git.localhorst.tv Git - alttp.git/blob - database/migrations/2024_04_10_071945_store_twitch_token_expiry.php
track twitch token expiration
[alttp.git] / database / migrations / 2024_04_10_071945_store_twitch_token_expiry.php
1 <?php
2
3 use Illuminate\Database\Migrations\Migration;
4 use Illuminate\Database\Schema\Blueprint;
5 use Illuminate\Support\Facades\Schema;
6
7 return new class extends Migration
8 {
9         /**
10          * Run the migrations.
11          */
12         public function up(): void
13         {
14                 Schema::table('twitch_tokens', function (Blueprint $table) {
15                         $table->timestamp('expires_at')->nullable()->default(null);
16                 });
17         }
18
19         /**
20          * Reverse the migrations.
21          */
22         public function down(): void
23         {
24                 Schema::table('twitch_tokens', function (Blueprint $table) {
25                         $table->dropColumn('expires_at');
26                 });
27         }
28 };