Skip to content

Commit

Permalink
Document --isolated flag
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeTowers authored Nov 13, 2024
1 parent b88234b commit 895d7d2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion console/setup-maintenance.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,14 @@ The `winter:update` command will request updates from the Winter gateway. It wil
## Run database migrations

The `winter:up` 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.
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.
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.

```bash
Expand Down

0 comments on commit 895d7d2

Please sign in to comment.