Files
karudhaas/database/migrations/2020_08_08_114140_create_sources_table.php

36 lines
723 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateSourcesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('sources', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->string('slug');
$table->string('logo');
$table->string('url');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('sources');
}
}