Add migration

This commit is contained in:
Daniel Supernault 2022-12-18 07:25:56 -07:00
parent 95bbcc3827
commit 434f1f229c
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('admin_invites', function (Blueprint $table) {
$table->unsignedInteger('uses')->default(0)->after('max_uses');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('admin_invites', function (Blueprint $table) {
$table->dropColumn('uses');
});
}
};