1
0
Fork 0

Migration: 2021_07_07_154223_add_spell_table.php

This commit is contained in:
Henrik Hautakoski 2021-07-07 16:16:53 +02:00
parent 06f750bde3
commit 8eaf836d4a

View file

@ -0,0 +1,22 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddSpellTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('spells', function (Blueprint $table) {
$table->unsignedBigInteger('id')->primary()->unique();
$table->string('name')->unique();
$table->string('slug')->unique();
});
}
}