45873431e4
* Add public/private pages #641 * Cleanup the form requests
45 lines
974 B
PHP
45 lines
974 B
PHP
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
/**
|
|
* Create the pages
|
|
* https://github.com/nabeelio/phpvms/issues/641
|
|
*/
|
|
class CreatePages extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::create('pages', function (Blueprint $table) {
|
|
$table->bigIncrements('id');
|
|
$table->string('name');
|
|
$table->string('slug');
|
|
$table->string('icon');
|
|
$table->unsignedSmallInteger('type');
|
|
$table->boolean('public');
|
|
$table->boolean('enabled');
|
|
$table->mediumText('body');
|
|
$table->timestamps();
|
|
|
|
$table->index('slug');
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::dropIfExists('pages');
|
|
}
|
|
}
|