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');
|
2016-05-29 01:34:24 +02:00
|
|
|
$table->timestamp('expires_at')->nullable();
|
2016-05-28 19:05:54 +02:00
|
|
|
|
|
|
|
$table->primary('id');
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Reverse the migrations.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function down()
|
|
|
|
{
|
|
|
|
Schema::drop('pastes');
|
|
|
|
}
|
|
|
|
}
|