1
0
Fork 0
mirror of https://github.com/Oreolek/kohana-migrations.git synced 2024-06-16 15:01:08 +03:00

filtering the files in the migrations folder (refs #18)

This commit is contained in:
Lorenzo Pisani 2011-07-01 23:30:15 -07:00
parent 0c65956d6b
commit cc193c43c6

View file

@ -60,6 +60,10 @@ class Model_Minion_Migration extends Model
}
else
{
// Skip files without an extension of EXT
if ('.'.pathinfo($file, PATHINFO_EXTENSION) !== EXT)
continue;
$migration = $this->get_migration_from_filename($file);
$migrations[$migration['group'].':'.$migration['timestamp']] = $migration;