Skip to content

Commit

Permalink
https://github.com/UksusoFF/webtrees-faces/issues/17#issuecomment-660…
Browse files Browse the repository at this point in the history
…333061
  • Loading branch information
UksusoFF committed Jul 27, 2020
1 parent 19620e4 commit 12ffcbf
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 6 deletions.
4 changes: 0 additions & 4 deletions src/Migrations/Migration5.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
}
}
20 changes: 20 additions & 0 deletions src/Migrations/Migration6.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php

namespace UksusoFF\WebtreesModules\Faces\Migrations;

use Fisharebest\Webtrees\Schema\MigrationInterface;
use Illuminate\Database\Capsule\Manager as DB;
use Illuminate\Database\Schema\Blueprint;

/**
* Migrate data from oldest versions.
*/
class Migration6 implements MigrationInterface
{
public function upgrade(): void
{
DB::schema()->table('media_faces', static function(Blueprint $table): void {
$table->unsignedInteger('f_m_tree')->nullable(true)->change();
});
}
}
4 changes: 2 additions & 2 deletions src/Modules/FacesModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down

0 comments on commit 12ffcbf

Please sign in to comment.