pastethingy/database/migrations/2016_05_27_230057_create_pa...

35 lines
620 B
PHP
Raw Normal View History

2016-05-28 19:05:54 +02:00
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreatePastesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('pastes', function (Blueprint $table) {
$table->char('id', 6);
$table->string('language');
$table->timestamp('created_at');
$table->timestamp('expires_at');
$table->primary('id');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('pastes');
}
}