Skip to content

Commit

Permalink
Merge pull request #159 from jadu/MET-122
Browse files Browse the repository at this point in the history
MET-122: Prevent migrations schema update
  • Loading branch information
dgudgeon authored Apr 19, 2023
2 parents f81dd0a + 6694ccb commit dafad60
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Migrations/Configuration/DoctrineConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,4 +185,14 @@ public function getMigrationVersions(): array
{
return $this->migrationVersions;
}

public function getMigrationsColumnLength(): int
{
/*
* HACK: For BC to prevent Doctrine attempting to resize the column on
* MSSQL, which causes an error:
* "The object 'PK__JaduMigr__79B5C94CE22D7096' is dependent on column 'version'"
*/
return 255;
}
}

0 comments on commit dafad60

Please sign in to comment.