Файл: database/migrations/2021_03_24_022751_v2_4_0.php
Строк: 57
<?php
use IlluminateDatabaseMigrationsMigration;
use IlluminateDatabaseSchemaBlueprint;
use IlluminateSupportFacadesSchema;
class V240 extends Migration
{
public function __construct()
{
DB::getDoctrineSchemaManager()->getDatabasePlatform()->registerDoctrineTypeMapping('enum', 'string');
}
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('websites', function (Blueprint $table) {
$table->increments('id')->change();
$table->integer('user_id')->unsigned()->change();
$table->text('exclude_params')->after('exclude_bots')->nullable();
});
Schema::table('recents', function (Blueprint $table) {
$table->increments('id')->change();
$table->integer('website_id')->unsigned()->change();
});
Schema::table('stats', function (Blueprint $table) {
$table->integer('website_id')->unsigned()->change();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
}