Skip to content

Commit

Permalink
Exposing new config value for migration version column length.
Browse files Browse the repository at this point in the history
  • Loading branch information
chewbakartik committed Apr 23, 2020
1 parent fa9aac7 commit 99582ea
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 99582ea

Please sign in to comment.