Migrations: Fix migration name
This commit is contained in:
parent
1292722ac3
commit
c85eb2f3d2
|
@ -0,0 +1,25 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace Engelsystem\Migrations;
|
||||||
|
|
||||||
|
use Engelsystem\Database\Migration\Migration;
|
||||||
|
|
||||||
|
class FixEmailMessagesMigrationName extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migration
|
||||||
|
*/
|
||||||
|
public function up(): void
|
||||||
|
{
|
||||||
|
$this->schema->getConnection()
|
||||||
|
->table('migrations')
|
||||||
|
->where('migration', '2023_02_26_000000_AddEmailMessagesToUsersSettings')
|
||||||
|
->update([
|
||||||
|
'migration' => '2023_02_26_000000_add_email_messages_to_users_settings',
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Down migration not needed when on same version
|
||||||
|
}
|
Loading…
Reference in New Issue