From f45def4ebc88635a2b1278c9fafaea1d6e0f0b17 Mon Sep 17 00:00:00 2001 From: Isaiah Paget Date: Tue, 10 Jun 2025 21:26:15 -0700 Subject: [PATCH 1/2] added note about new --force option when running winter:up --- console/setup-maintenance.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/console/setup-maintenance.md b/console/setup-maintenance.md index 89c8ee55..11f4881b 100644 --- a/console/setup-maintenance.md +++ b/console/setup-maintenance.md @@ -27,12 +27,12 @@ The `winter:update` command will request updates from the Winter gateway. It wil ## Run database migrations The `winter:up` (or `migrate`) command will perform a database migration, creating database tables and executing seed scripts, provided by the system and [plugin version history](../plugin/updates). The migration command can be run multiple times - it will only execute a migration or seed script once, which means only new changes are applied. - ```bash php artisan winter:up ``` - ->**NOTE:** The migration command supports the [`--isolated`](https://laravel.com/docs/11.x/artisan#isolatable-commands) flag for ensuring that only one instance of the command can be run at a time in a multi-server environment. +>**NOTE:** +> - In production environments ([APP_ENV](../setup/configuration#defining-a-base-environment)=production), this command prompts for confirmation. Use `--force` to bypass the prompt, e.g. in CI/CD pipelines. +> - The migration command supports the [`--isolated`](https://laravel.com/docs/11.x/artisan#isolatable-commands) flag for ensuring that only one instance of the command can be run at a time in a multi-server environment. The inverse command `winter:down` will reverse all migrations, dropping database tables and deleting data. Care should be taken when using this command. The [plugin refresh command](../console/plugin-management#refresh-a-plugin) is a useful alternative for debugging a single plugin. From 84d80e098306f098b461dbe2a2e377728552459f Mon Sep 17 00:00:00 2001 From: Isaiah Paget Date: Wed, 11 Jun 2025 22:27:17 -0700 Subject: [PATCH 2/2] fix for failing lint check --- console/setup-maintenance.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/console/setup-maintenance.md b/console/setup-maintenance.md index 11f4881b..8251ba75 100644 --- a/console/setup-maintenance.md +++ b/console/setup-maintenance.md @@ -27,9 +27,11 @@ The `winter:update` command will request updates from the Winter gateway. It wil ## Run database migrations The `winter:up` (or `migrate`) command will perform a database migration, creating database tables and executing seed scripts, provided by the system and [plugin version history](../plugin/updates). The migration command can be run multiple times - it will only execute a migration or seed script once, which means only new changes are applied. + ```bash php artisan winter:up ``` + >**NOTE:** > - In production environments ([APP_ENV](../setup/configuration#defining-a-base-environment)=production), this command prompts for confirmation. Use `--force` to bypass the prompt, e.g. in CI/CD pipelines. > - The migration command supports the [`--isolated`](https://laravel.com/docs/11.x/artisan#isolatable-commands) flag for ensuring that only one instance of the command can be run at a time in a multi-server environment.