mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-09 16:24:51 +00:00
Add migration
This commit is contained in:
parent
95bbcc3827
commit
434f1f229c
1 changed files with 32 additions and 0 deletions
|
@ -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');
|
||||
});
|
||||
}
|
||||
};
|
Loading…
Reference in a new issue