Adding database/migrations/2023_02_19_153640_add_jackpot_column_to_cards_table.php
This commit is contained in:
parent
d6b267ea90
commit
2125bad4c5
1 changed files with 20 additions and 0 deletions
|
|
@ -0,0 +1,20 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
class AddJackpotColumnToCardsTable extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function up()
|
||||||
|
{
|
||||||
|
Schema::table('cards', function (Blueprint $table) {
|
||||||
|
$table->boolean("jackpot")->default(0)->after("role");
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in a new issue