36 lines
701 B
PHP
Executable File
36 lines
701 B
PHP
Executable File
<?php
|
|
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
class Banners extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::create('banners', function(Blueprint $t) {
|
|
$t->increments('id');
|
|
$t->string('customer')->nullable();
|
|
$t->string('url');
|
|
$t->string('image');
|
|
$t->boolean('sfw');
|
|
$t->timestamp('until');
|
|
$t->timestamps();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::drop('banners');
|
|
}
|
|
}
|