-
Notifications
You must be signed in to change notification settings - Fork 121
Closed
Labels
Milestone
Description
I have a deploy script which just applies bin/cake migrations migrate -p MyPlugin to every Plugin I have in my plugins directory.
But I have certain plugins, which just don't have any migrations in them at all, so i get this:
kevin•Documents/sunlime/alfred(master⚡)» bin/cake migrations migrate -p AlfredTemplates [9:26:49]
All Done. Took 0.0126s
2026-01-27 09:26:50 warning: file_put_contents(/Users/kevin/Documents/sunlime/alfred/plugins/AlfredTemplates/config/Migrations/schema-dump-default.lock): Failed to open stream: No such file or directory in /Users/kevin/Documents/sunlime/alfred/vendor/cakephp/migrations/src/Command/DumpCommand.php on line 139
Trace:
Cake\Error\ErrorTrap->handleError() [internal], line ??
/Users/kevin/Documents/sunlime/alfred/vendor/cakephp/migrations/src/Command/DumpCommand.php /Users/kevin/Documents/sunlime/alfred/vendor/cakephp/migrations/src/Command/DumpCommand.php, line 139
Migrations\Command\DumpCommand->execute() /Users/kevin/Documents/sunlime/alfred/vendor/cakephp/cakephp/src/Console/BaseCommand.php, line 259
Cake\Console\BaseCommand->run() /Users/kevin/Documents/sunlime/alfred/vendor/cakephp/cakephp/src/Console/BaseCommand.php, line 350
Cake\Console\BaseCommand->executeCommand() /Users/kevin/Documents/sunlime/alfred/vendor/cakephp/migrations/src/Command/MigrateCommand.php, line 191
Migrations\Command\MigrateCommand->executeMigrations() /Users/kevin/Documents/sunlime/alfred/vendor/cakephp/migrations/src/Command/MigrateCommand.php, line 110
Migrations\Command\MigrateCommand->execute() /Users/kevin/Documents/sunlime/alfred/vendor/cakephp/cakephp/src/Console/BaseCommand.php, line 259
Cake\Console\BaseCommand->run() /Users/kevin/Documents/sunlime/alfred/vendor/cakephp/cakephp/src/Console/CommandRunner.php, line 375
Cake\Console\CommandRunner->runCommand() /Users/kevin/Documents/sunlime/alfred/vendor/cakephp/cakephp/src/Console/CommandRunner.php, line 193
Cake\Console\CommandRunner->run() /Users/kevin/Documents/sunlime/alfred/bin/cake.php, line 11
[main]
warning: 2 :: file_put_contents(/Users/kevin/Documents/sunlime/alfred/plugins/AlfredTemplates/config/Migrations/schema-dump-default.lock): Failed to open stream: No such file or directory on line 139 of /Users/kevin/Documents/sunlime/alfred/vendor/cakephp/migrations/src/Command/DumpCommand.php
Stack Trace:
Cake\Error\ErrorTrap->handleError() [internal], line ??
/Users/kevin/Documents/sunlime/alfred/vendor/cakephp/migrations/src/Command/DumpCommand.php /Users/kevin/Documents/sunlime/alfred/vendor/cakephp/migrations/src/Command/DumpCommand.php, line 139
Migrations\Command\DumpCommand->execute() /Users/kevin/Documents/sunlime/alfred/vendor/cakephp/cakephp/src/Console/BaseCommand.php, line 259
Cake\Console\BaseCommand->run() /Users/kevin/Documents/sunlime/alfred/vendor/cakephp/cakephp/src/Console/BaseCommand.php, line 350
Cake\Console\BaseCommand->executeCommand() /Users/kevin/Documents/sunlime/alfred/vendor/cakephp/migrations/src/Command/MigrateCommand.php, line 191
Migrations\Command\MigrateCommand->executeMigrations() /Users/kevin/Documents/sunlime/alfred/vendor/cakephp/migrations/src/Command/MigrateCommand.php, line 110
Migrations\Command\MigrateCommand->execute() /Users/kevin/Documents/sunlime/alfred/vendor/cakephp/cakephp/src/Console/BaseCommand.php, line 259
Cake\Console\BaseCommand->run() /Users/kevin/Documents/sunlime/alfred/vendor/cakephp/cakephp/src/Console/CommandRunner.php, line 375
Cake\Console\CommandRunner->runCommand() /Users/kevin/Documents/sunlime/alfred/vendor/cakephp/cakephp/src/Console/CommandRunner.php, line 193
Cake\Console\CommandRunner->run() /Users/kevin/Documents/sunlime/alfred/bin/cake.php, line 11
[main]
An error occurred while writing dump file `/Users/kevin/Documents/sunlime/alfred/plugins/AlfredTemplates/config/Migrations/schema-dump-default.lock`
Would be cool if we can adjust that to something like "no migrations found"
dereuromark