Skip to content

Commit

Permalink
Remove all associated migrations file
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdlrahmanSaberAbdo committed Jan 22, 2022
1 parent 1079d24 commit b05313c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Logic/FileManipulator.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public static function generate($source_dir, $destination_dir, $files, $search =

if (strpos($destination, 'Migrations') !== false) {
$full_destination = "$destination_dir/{$destination}";
self::deleteFilesWithMatchSpecificPrefix($full_destination, "create_$unit"."_"."table");
self::deleteFilesWithMatchSpecificPrefix($full_destination, "$unit"."_"."table");

}
file_put_contents("$destination_dir/{$destination}{$file}", $content);
Expand Down

0 comments on commit b05313c

Please sign in to comment.