Skip to content

Commit 41bb590

Browse files
committed
Explain how the package can be used
1 parent a651f8d commit 41bb590

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,17 @@ Review and update the default configuration according to your use case (see Usag
2727

2828
## Usage
2929

30-
Explain how to use your package.
30+
1. Create migrations to obtain your current database structure;
31+
2. Configure `last_migration_for_upgrade` to points to the last migration that represent your current database structure;
32+
3. Optionally, you can add migrations to update your old structure;
33+
4. Run the `php artisan db:upgrade` command.
34+
35+
The `db:upgrade` command will perform the following actions:
36+
37+
1. Backup your data;
38+
2. Run your migrations up to the `last_migration_for_upgrade` migration;
39+
3. Restore your data;
40+
4. Run remaining migration.
3141

3242
## Testing
3343

0 commit comments

Comments
 (0)