From 12ffcbf5da499159c0c6d7fe0c90e957ee6560a6 Mon Sep 17 00:00:00 2001 From: Kirill Uksusov Date: Mon, 27 Jul 2020 19:47:50 +0400 Subject: [PATCH] https://github.com/UksusoFF/webtrees-faces/issues/17#issuecomment-660333061 --- src/Migrations/Migration5.php | 4 ---- src/Migrations/Migration6.php | 20 ++++++++++++++++++++ src/Modules/FacesModule.php | 4 ++-- 3 files changed, 22 insertions(+), 6 deletions(-) create mode 100644 src/Migrations/Migration6.php diff --git a/src/Migrations/Migration5.php b/src/Migrations/Migration5.php index 19629cf..bcdeb9f 100644 --- a/src/Migrations/Migration5.php +++ b/src/Migrations/Migration5.php @@ -22,9 +22,5 @@ public function upgrade(): void ->update([ 'f_m_tree' => DB::raw('m_file'), ]); - - DB::schema()->table('media_faces', static function(Blueprint $table): void { - $table->unsignedInteger('f_m_tree')->nullable(false)->change(); - }); } } diff --git a/src/Migrations/Migration6.php b/src/Migrations/Migration6.php new file mode 100644 index 0000000..c39829e --- /dev/null +++ b/src/Migrations/Migration6.php @@ -0,0 +1,20 @@ +table('media_faces', static function(Blueprint $table): void { + $table->unsignedInteger('f_m_tree')->nullable(true)->change(); + }); + } +} diff --git a/src/Modules/FacesModule.php b/src/Modules/FacesModule.php index 361deed..b2970c9 100644 --- a/src/Modules/FacesModule.php +++ b/src/Modules/FacesModule.php @@ -34,9 +34,9 @@ class FacesModule extends AbstractModule implements ModuleCustomInterface, Modul use ModuleConfigTrait; use ModuleTabTrait; - public const SCHEMA_VERSION = '6'; + public const SCHEMA_VERSION = '7'; - public const CUSTOM_VERSION = '2.6.4'; + public const CUSTOM_VERSION = '2.6.5'; public const CUSTOM_WEBSITE = 'https://github.com/UksusoFF/webtrees-faces';