Migration: 2021_07_11_152906_add_specialization_relationship_to_character_professions_table.php
This commit is contained in:
parent
87d1d6fd58
commit
5314028388
1 changed files with 21 additions and 0 deletions
|
|
@ -0,0 +1,21 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class AddSpecializationRelationshipToCharacterProfessionsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('character_professions', function (Blueprint $table) {
|
||||
$table->foreignId('specialization_id')
|
||||
->after('profession_id')->nullable()->constrained('spells');
|
||||
});
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue