FEATURE: add translations for comment logged events

This commit is contained in:
Michal Kváček
2016-09-24 20:19:21 +02:00
parent 2f760fd56d
commit 82283e65be
5 changed files with 84 additions and 32 deletions
@@ -0,0 +1,44 @@
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class FixForeignKeysOnActionLog extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('action_log', function (Blueprint $table) {
$table->dropForeign('fk_action_log_action_log_type1');
$table->dropForeign('fk_action_log_user1');
$table->foreign('type_id')
->references('id')
->on('action_log_types')
->onDelete('cascade')
->onUpdate('cascade');
$table->foreign('user_id')
->references('id')
->on('users')
->onDelete('cascade')
->onUpdate('cascade');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
// do nothing
}
}