Files
monica/database/migrations/2018_04_13_205231_create_changes_table.php
T
2018-04-14 19:52:52 -04:00

31 lines
790 B
PHP

<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateChangesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('changelogs', function (Blueprint $table) {
$table->increments('id');
$table->mediumText('description');
$table->timestamps();
});
Schema::create('changelog_user', function (Blueprint $table) {
$table->integer('changelog_id');
$table->integer('user_id');
$table->boolean('read')->default(0);
$table->boolean('upvote')->default(0);
$table->timestamps();
});
}
}