Skip to content

Commit 47e35bb

Browse files
committed
Update src/Composer/Installer/CodeigniterInstaller.php
1 parent 70d468a commit 47e35bb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Composer/Installer/CodeigniterInstaller.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,9 @@ protected function postInstallActions($type, $downloadPath)
159159
sort($migrations);
160160
$migration = array_pop($migrations);
161161
$parts = explode('_', $migration);
162-
$number = ((int) array_shift($parts)) + 1;
162+
$number = array_shift($parts);
163+
var_dump($number);
164+
$number++;
163165
}
164166
else
165167
{
@@ -174,7 +176,7 @@ protected function postInstallActions($type, $downloadPath)
174176
foreach ($moduleMigrations as $migration)
175177
{
176178
// Re-number the migration
177-
$newMigration = dirname($migration) . DIRECTORY_SEPARATOR .
179+
$newMigration = $migrationPath .
178180
preg_replace('/^(\d+)/', sprintf('%03d', $number), basename($migration));
179181

180182
// Copy the migration file

0 commit comments

Comments
 (0)