Файл: database/migrations/2018_04_27_165145_add_referals_table.php
Строк: 27
<?php
use IlluminateSupportFacadesSchema;
use IlluminateDatabaseSchemaBlueprint;
use IlluminateDatabaseMigrationsMigration;
class AddReferalsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('referals', function (Blueprint $table) {
$table->increments('id');
$table->integer('referal');
$table->integer('user');
$table->string('ip');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('referals');
}
}