From 6835c9d3b633e77466301d86681ec769ad736856 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Thu, 15 Oct 2020 08:04:42 +1100 Subject: [PATCH] Fixes for migration --- database/migrations/2014_10_13_000000_create_users_table.php | 2 +- .../migrations/2020_10_14_201320_project_ids_to_entities.php | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/database/migrations/2014_10_13_000000_create_users_table.php b/database/migrations/2014_10_13_000000_create_users_table.php index 09c5eeed9b54..edd0af5e83f9 100644 --- a/database/migrations/2014_10_13_000000_create_users_table.php +++ b/database/migrations/2014_10_13_000000_create_users_table.php @@ -90,7 +90,7 @@ class CreateUsersTable extends Migration $table->string('site_url', 200)->nullable(); $table->boolean('is_offsite')->default(false); $table->boolean('is_secure')->default(false); - $table->longText('fields')->nullable(); + $table->mediumText('fields')->nullable(); $table->unsignedInteger('default_gateway_type_id')->default(1); $table->timestamps(6); }); diff --git a/database/migrations/2020_10_14_201320_project_ids_to_entities.php b/database/migrations/2020_10_14_201320_project_ids_to_entities.php index c014e0081a03..d81d02e0e2fd 100644 --- a/database/migrations/2020_10_14_201320_project_ids_to_entities.php +++ b/database/migrations/2020_10_14_201320_project_ids_to_entities.php @@ -17,6 +17,10 @@ class ProjectIdsToEntities extends Migration $table->unsignedInteger('project_id')->nullable(); }); + Schema::table('gateways', function (Blueprint $table) { + $table->longText('fields')->change(); + }); + } /**