38 lines
863 B
PHP
38 lines
863 B
PHP
|
<?php
|
||
|
|
||
|
use Illuminate\Database\Migrations\Migration;
|
||
|
use Illuminate\Database\Schema\Blueprint;
|
||
|
use Illuminate\Support\Facades\Schema;
|
||
|
|
||
|
class CreateFeedItemsTable extends Migration
|
||
|
{
|
||
|
/**
|
||
|
* Run the migrations.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function up()
|
||
|
{
|
||
|
Schema::create('feed_items', function (Blueprint $table) {
|
||
|
$table->bigIncrements('id');
|
||
|
$table->text('url');
|
||
|
$table->string('hash');
|
||
|
$table->text('title');
|
||
|
$table->longText('description')->nullable();
|
||
|
$table->longText('content')->nullable();
|
||
|
$table->dateTime('published_at');
|
||
|
$table->timestamps();
|
||
|
});
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Reverse the migrations.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function down()
|
||
|
{
|
||
|
Schema::dropIfExists('feed_items');
|
||
|
}
|
||
|
}
|