Skip to content

Commit beddaf5

Browse files
authored
Merge pull request #96 from kaskadia/2.0
Exposing new config value for migration version column length.
2 parents fa9aac7 + 99582ea commit beddaf5

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

config/migrations.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,15 @@
7474
*/
7575
'schema' => [
7676
'filter' => '/^(?!password_resets|failed_jobs).*$/'
77-
]
77+
],
78+
/*
79+
|--------------------------------------------------------------------------
80+
| Migration Version Column Length
81+
|--------------------------------------------------------------------------
82+
|
83+
| The length for the version column in the migrations table.
84+
|
85+
*/
86+
'version_column_length' => 14
7887
],
7988
];

src/Configuration/ConfigurationFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ public function make(Connection $connection, $name = null)
7575
}
7676
}
7777

78+
$configuration->setMigrationsColumnLength($config->get('version_column_length', 14));
79+
7880
return $configuration;
7981
}
8082
}

0 commit comments

Comments
 (0)