forked from mirror/pixelfed
35 lines
777 B
PHP
35 lines
777 B
PHP
![]() |
<?php
|
||
|
|
||
|
use Illuminate\Support\Facades\Schema;
|
||
|
use Illuminate\Database\Schema\Blueprint;
|
||
|
use Illuminate\Database\Migrations\Migration;
|
||
|
|
||
|
class CreateStoriesTable extends Migration
|
||
|
{
|
||
|
/**
|
||
|
* Run the migrations.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function up()
|
||
|
{
|
||
|
Schema::create('stories', function (Blueprint $table) {
|
||
|
$table->increments('bigIncrements');
|
||
|
$table->bigInteger('profile_id')->unsigned();
|
||
|
$table->timestamp('published_at')->nullable();
|
||
|
$table->timestamp('expires_at')->nullable();
|
||
|
$table->timestamps();
|
||
|
});
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Reverse the migrations.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function down()
|
||
|
{
|
||
|
Schema::dropIfExists('stories');
|
||
|
}
|
||
|
}
|