docs for migrate:uninstall

[skip ci]
This commit is contained in:
silverqx
2022-12-02 08:00:07 +01:00
parent 5e5b52a454
commit 0d1ab96ede
+10
View File
@@ -319,6 +319,10 @@ The `tom` command is able to guess the command name and command namespace, eg. `
You can pass the `-vvv` command-line argument to any command to see all executed SQL queries. 👌
:::
:::note
The `migrate` Tom command internally calls the `migrate:install` command which installs the migration repository table. To uninstall this repository table you can call the `migrate:uninstall`.
:::
#### Forcing Migrations To Run In Production
Some migration operations are destructive, which means they may cause you to lose data. In order to protect you from running these commands against your production database, you will be prompted for confirmation before the commands are executed. To force the commands to run without a prompt, use the `--force` flag:
@@ -347,6 +351,12 @@ The `migrate:reset` command will roll back all of your application's migrations:
tom migrate:reset
```
The `migrate:uninstall` command will uninstall the migration repository table, it optionally accepts the `--reset` option to roll back all of your application's migrations:
```bash
tom migrate:uninstall --reset
```
#### Roll Back & Migrate Using A Single Command
The `migrate:refresh` command will roll back all of your migrations and then execute the `migrate` command. This command effectively re-creates your entire database: