LinkStack/database/migrations/2021_03_17_044922_create_bu...

37 lines
819 B
PHP
Raw Normal View History

2021-04-16 01:00:00 +02:00
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateButtonsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('buttons', function (Blueprint $table) {
$table->id();
$table->string('name');
2023-12-16 18:47:35 +01:00
$table->string('alt')->nullable();
$table->boolean('exclude')->default(false);
$table->string('group')->nullable();
$table->boolean('mb')->default(false);
2021-04-16 01:00:00 +02:00
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('buttons');
}
}