Merge pull request #499 from jonnybarnes/develop

MTM Simplify migrations
This commit is contained in:
Jonny Barnes 2022-10-24 21:18:58 +01:00 committed by GitHub
commit 0bea4a1e95
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 43 deletions

View file

@ -17,12 +17,12 @@ return new class extends Migration
$table->id(); $table->id();
$table->string('uid'); $table->string('uid');
$table->string('name'); $table->string('name');
$table->string('service_name'); $table->string('service_name')->nullable();
$table->string('service_url'); $table->string('service_url')->nullable();
$table->string('service_photo'); $table->string('service_photo')->nullable();
$table->string('user_name'); $table->string('user_name')->nullable();
$table->string('user_url'); $table->string('user_url')->nullable();
$table->string('user_photo'); $table->string('user_photo')->nullable();
$table->timestamps(); $table->timestamps();
}); });
} }

View file

@ -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) {
//
});
}
};