Skip to content

Commit

Permalink
Add sting type field for keywords #16 #17
Browse files Browse the repository at this point in the history
  • Loading branch information
drewroberts authored Feb 25, 2021
1 parent 6f624e4 commit 9438dfc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ public function up()
Schema::create('keywords', function (Blueprint $table) {
$table->id();
$table->string('phrase')->index()->unique();

// Add nullable keyword_type_id
$table->string('type')->index();

$table->foreignIdFor(Keyword::class, 'parent_id')->nullable();
$table->foreignIdFor(app('user'), 'creator_id');
$table->foreignIdFor(app('user'), 'updater_id');
Expand Down

0 comments on commit 9438dfc

Please sign in to comment.