Skip to content

Commit

Permalink
test rename foreign_key to relation
Browse files Browse the repository at this point in the history
  • Loading branch information
ucan-lab committed Sep 2, 2019
1 parent 9836ada commit 7fbf12c
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Migrations/Schema/Table.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,15 +126,15 @@ public function getCreateIndexMigrationFileName(): string
*/
public function getConstraintRelationMigrationClassName(): string
{
return Str::studly('constraint_' . $this->name . '_foreign_key');
return Str::studly('constraint_' . $this->name . '_relation');
}

/**
* @return string
*/
public function getConstraintRelationMigrationFileName(): string
{
return $this->getDatePrefix(self::PREFIX_CONSTRAINT_RELATION) . '_constraint_' . $this->name . '_foreign_key.php';
return $this->getDatePrefix(self::PREFIX_CONSTRAINT_RELATION) . '_constraint_' . $this->name . '_relation.php';
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class ConstraintTasksForeignKey extends Migration
class ConstraintTasksRelation extends Migration
{
/**
* Run the migrations.
Expand Down
File renamed without changes.

0 comments on commit 7fbf12c

Please sign in to comment.