-
-
Notifications
You must be signed in to change notification settings - Fork 241
fix added support for --force option when migrating the database #1363
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: wip/1.3
Are you sure you want to change the base?
Changes from 5 commits
2d5ac48
b35f701
3458dd7
7dcb5ba
fb27763
a5800d7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,6 +1,9 @@ | ||||||
| <?php namespace System\Console; | ||||||
| <?php | ||||||
|
|
||||||
| namespace System\Console; | ||||||
|
|
||||||
| use Illuminate\Console\Command; | ||||||
| use Illuminate\Console\ConfirmableTrait; | ||||||
| use Illuminate\Contracts\Console\Isolatable; | ||||||
| use System\Classes\UpdateManager; | ||||||
|
|
||||||
|
|
@@ -14,13 +17,17 @@ | |||||
| */ | ||||||
| class WinterUp extends Command implements Isolatable | ||||||
| { | ||||||
| use ConfirmableTrait; | ||||||
|
|
||||||
| /** | ||||||
| * The name and signature of the console command. | ||||||
| * | ||||||
| * @var string | ||||||
| */ | ||||||
| protected $signature = 'winter:up | ||||||
| {--seed : Included for compatibility with Laravel default signature, no effect at this time}'; | ||||||
| {--seed : Included for compatibility with Laravel default signature, no effect at this time} | ||||||
| {--force : Force the operation to run when in production} | ||||||
| '; | ||||||
|
|
||||||
| /** | ||||||
| * The console command description. | ||||||
|
|
@@ -43,6 +50,10 @@ public function __construct() | |||||
| */ | ||||||
| public function handle() | ||||||
| { | ||||||
| if (!$this->confirmToProceed()) { | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @LukeTowers Sorry I had a dyslexic moment reading your comment, I read 'comment' as 'commit' and I have never seen this 'suggested diff' feature so I am just now realizing this is just a suggestion, not actually added to the branch. But now I am following lol. In the database.php did you have something like this in-mind: /*
|--------------------------------------------------------------------------
| Migration Repository Table
|--------------------------------------------------------------------------
|
| This table keeps track of all the migrations that have already run for
| your application. Using this information, we can determine which of
| the migrations on disk haven't actually been run in the database.
|
*/
'migrations' = [
'confirm_in_prod' => env('MIGRATION_CONFIRM_IN_PROD', false),
],
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Pretty much exactly that @IsaiahPaget |
||||||
| return 1; | ||||||
| } | ||||||
|
|
||||||
| $this->output->writeln('<info>Migrating application and plugins...</info>'); | ||||||
|
|
||||||
| UpdateManager::instance() | ||||||
|
|
||||||
Uh oh!
There was an error while loading. Please reload this page.