Migration: 2021_07_07_154223_add_spell_table.php
This commit is contained in:
parent
06f750bde3
commit
8eaf836d4a
1 changed files with 22 additions and 0 deletions
22
database/migrations/2021_07_07_154223_add_spell_table.php
Normal file
22
database/migrations/2021_07_07_154223_add_spell_table.php
Normal 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();
|
||||
});
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue