turkmentv/database/migrations/2022_02_07_173031_create_we...

41 lines
1.0 KiB
PHP

<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateWebpagesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('webpages', function (Blueprint $table) {
$table->bigIncrements('id');
$table->string('image')->nullable();
$table->string('title')->nullable();
$table->text('text')->nullable();
$table->string('upper_link')->nullable();
$table->string('upper_link_image')->nullable();
$table->string('link')->nullable();
$table->string('link_image')->nullable();
$table->string('web_banner')->nullable();
$table->string('mob_banner')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('webpages');
}
}