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';