update v1.0.3.3
This commit is contained in:
34
database/migrations/2015_05_14_072226_create_pages_table.php
Normal file
34
database/migrations/2015_05_14_072226_create_pages_table.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
|
||||
class CreatePagesTable extends Migration {
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up() {
|
||||
Schema::create('pages', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->string('name');
|
||||
$table->boolean('status');
|
||||
$table->boolean('visibility');
|
||||
$table->string('slug');
|
||||
$table->longText('description');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down() {
|
||||
Schema::drop('pages');
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user