Merge pull request #499 from jonnybarnes/develop
MTM Simplify migrations
This commit is contained in:
commit
0bea4a1e95
2 changed files with 6 additions and 43 deletions
|
@ -17,12 +17,12 @@ return new class extends Migration
|
|||
$table->id();
|
||||
$table->string('uid');
|
||||
$table->string('name');
|
||||
$table->string('service_name');
|
||||
$table->string('service_url');
|
||||
$table->string('service_photo');
|
||||
$table->string('user_name');
|
||||
$table->string('user_url');
|
||||
$table->string('user_photo');
|
||||
$table->string('service_name')->nullable();
|
||||
$table->string('service_url')->nullable();
|
||||
$table->string('service_photo')->nullable();
|
||||
$table->string('user_name')->nullable();
|
||||
$table->string('user_url')->nullable();
|
||||
$table->string('user_photo')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
|
|
@ -1,37 +0,0 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('syndication_targets', function (Blueprint $table) {
|
||||
$table->string('service_name')->nullable()->change();
|
||||
$table->string('service_url')->nullable()->change();
|
||||
$table->string('service_photo')->nullable()->change();
|
||||
$table->string('user_name')->nullable()->change();
|
||||
$table->string('user_url')->nullable()->change();
|
||||
$table->string('user_photo')->nullable()->change();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('syndication_targets', function (Blueprint $table) {
|
||||
//
|
||||
});
|
||||
}
|
||||
};
|
Loading…
Add table
Reference in a new issue