Migrations and factories

This commit is contained in:
2020-08-08 20:44:24 +05:00
parent c20392a24c
commit a587a25491
7 changed files with 188 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
<?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');
}
}