pixelfed/database/migrations/2022_12_18_133815_add_defau...

32 lines
644 B
PHP
Raw Permalink Normal View History

2022-12-18 14:25:56 +00:00
<?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) {
2022-12-20 05:37:43 +00:00
$table->unsignedInteger('uses')->default(0)->after('max_uses')->change();
2022-12-18 14:25:56 +00:00
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('admin_invites', function (Blueprint $table) {
});
}
};