Archived
1
0
Fork 0
This repository has been archived on 2021-07-30. You can view files and clone it, but cannot push or open issues or pull requests.
ifnews/database/migrations/2019_09_12_192839_sources.php
2019-09-13 02:30:03 +07:00

35 lines
620 B
PHP

<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class Sources extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('games', function (Blueprint $table) {
$table->string('source')->nullable();
$table->string('source_id')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('games', function (Blueprint $table) {
$table->dropColumn('source');
$table->dropColumn('source_id');
});
}
}