mirror of
https://github.com/Oreolek/kohana-migrations.git
synced 2024-06-28 20:55:08 +03:00
filtering the files in the migrations folder (refs #18)
This commit is contained in:
parent
0c65956d6b
commit
cc193c43c6
|
@ -60,6 +60,10 @@ class Model_Minion_Migration extends Model
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
// Skip files without an extension of EXT
|
||||||
|
if ('.'.pathinfo($file, PATHINFO_EXTENSION) !== EXT)
|
||||||
|
continue;
|
||||||
|
|
||||||
$migration = $this->get_migration_from_filename($file);
|
$migration = $this->get_migration_from_filename($file);
|
||||||
|
|
||||||
$migrations[$migration['group'].':'.$migration['timestamp']] = $migration;
|
$migrations[$migration['group'].':'.$migration['timestamp']] = $migration;
|
||||||
|
|
Loading…
Reference in a new issue