Skip to content

Commit

Permalink
Merge pull request #96 from kaskadia/2.0
Browse files Browse the repository at this point in the history
Exposing new config value for migration version column length.
  • Loading branch information
eigan authored Apr 24, 2020
2 parents fa9aac7 + 99582ea commit beddaf5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 10 additions & 1 deletion config/migrations.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,15 @@
*/
'schema' => [
'filter' => '/^(?!password_resets|failed_jobs).*$/'
]
],
/*
|--------------------------------------------------------------------------
| Migration Version Column Length
|--------------------------------------------------------------------------
|
| The length for the version column in the migrations table.
|
*/
'version_column_length' => 14
],
];
2 changes: 2 additions & 0 deletions src/Configuration/ConfigurationFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ public function make(Connection $connection, $name = null)
}
}

$configuration->setMigrationsColumnLength($config->get('version_column_length', 14));

return $configuration;
}
}

0 comments on commit beddaf5

Please sign in to comment.