BookStack/database/migrations/2015_11_21_145609_create_views_table.php

35 lines
714 B
PHP
Raw Normal View History

<?php
use Illuminate\Database\Migrations\Migration;
2021-06-26 17:23:15 +02:00
use Illuminate\Database\Schema\Blueprint;
class CreateViewsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('views', function (Blueprint $table) {
$table->increments('id');
$table->integer('user_id');
$table->integer('viewable_id');
$table->string('viewable_type');
$table->integer('views');
2016-02-16 22:25:11 +01:00
$table->nullableTimestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('views');
}
}