Skip to content

Commit

Permalink
[FIX] table name singular to pural
Browse files Browse the repository at this point in the history
  • Loading branch information
shuikang committed Mar 26, 2018
1 parent 7c52ef4 commit 34839c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function up()
});

Schema::create('priorities', function (Blueprint $table) {
$table->Increments('id')->unsigned();
$table->increments('id')->unsigned();
$table->string('name')->unique();
$table->timestamp('created_at')->useCurrent();
$table->timestamp('updated_at')
Expand Down Expand Up @@ -56,7 +56,7 @@ public function up()
->onUpdate('cascade')->onDelete('cascade');
$table->foreign('report_id')->references('id')->on('users')
->onUpdate('cascade')->onDelete('cascade');
$table->foreign('priority_id')->references('id')->on('prioritys')
$table->foreign('priority_id')->references('id')->on('priorities')
->onUpdate('cascade')->onDelete('cascade');
});

Expand Down
2 changes: 1 addition & 1 deletion database/seeds/PrioritysTableSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public function run()
'low'
];
for ($i=0; $i < sizeof($types); $i++) {
DB::table('prioritys')->insert([
DB::table('priorities')->insert([
'name' => $types[$i]
]);
}
Expand Down

0 comments on commit 34839c9

Please sign in to comment.