/var/www/vhosts/ihelp.ro/httpdocs/vendor/cakephp/migrations/src/Command
NameSizeModeActions
Phinx/-0755rm
BakeMigrationCommand.php75450644editdlrm
BakeMigrationDiffCommand.php207280644editdlrm
BakeMigrationSnapshotCommand.php51920644editdlrm
BakeSeedCommand.php73130644editdlrm
BakeSimpleMigrationCommand.php59500644editdlrm
MigrationsCacheBuildCommand.php8480644editdlrm
MigrationsCacheClearCommand.php8480644editdlrm
MigrationsCommand.php67150644editdlrm
MigrationsCreateCommand.php8400644editdlrm
MigrationsDumpCommand.php8360644editdlrm
MigrationsMarkMigratedCommand.php8520644editdlrm
MigrationsMigrateCommand.php8420644editdlrm
MigrationsRollbackCommand.php8440644editdlrm
MigrationsSeedCommand.php8360644editdlrm
MigrationsStatusCommand.php8400644editdlrm
SnapshotTrait.php30820644editdlrm
Edit: /var/www/vhosts/ihelp.ro/httpdocs/vendor/cakephp/migrations/src/Command/SnapshotTrait.php (3082B)
markSnapshotApplied($path, $args, $io); if (!$args->getOption('no-lock')) { $this->refreshDump($args, $io); } } return $createFile; } /** * Will mark a snapshot created, the snapshot being identified by its * full file path. * * @param string $path Path to the newly created snapshot * @param \Cake\Console\Arguments $args The command arguments. * @param \Cake\Console\ConsoleIo $io The console io * @return void */ protected function markSnapshotApplied($path, Arguments $args, ConsoleIo $io) { $fileName = pathinfo($path, PATHINFO_FILENAME); [$version, ] = explode('_', $fileName, 2); $newArgs = []; $newArgs[] = '-t'; $newArgs[] = $version; $newArgs[] = '-o'; if ($args->getOption('connection')) { $newArgs[] = '-c'; $newArgs[] = $args->getOption('connection'); } if ($args->getOption('plugin')) { $newArgs[] = '-p'; $newArgs[] = $args->getOption('plugin'); } $io->out('Marking the migration ' . $fileName . ' as migrated...'); $this->executeCommand(MigrationsMarkMigratedCommand::class, $newArgs, $io); } /** * After a file has been successfully created, we refresh the dump of the database * to be able to generate a new diff afterward. * * @param \Cake\Console\Arguments $args The command arguments. * @param \Cake\Console\ConsoleIo $io The console io * @return void */ protected function refreshDump(Arguments $args, ConsoleIo $io) { $newArgs = []; if ($args->getOption('connection')) { $newArgs[] = '-c'; $newArgs[] = $args->getOption('connection'); } if ($args->getOption('plugin')) { $newArgs[] = '-p'; $newArgs[] = $args->getOption('plugin'); } $io->out('Creating a dump of the new database state...'); $this->executeCommand(MigrationsDumpCommand::class, $newArgs, $io); } }