Skip to content

Commit

Permalink
docs: Added upgrade instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
cjmellor committed Mar 17, 2024
1 parent 445034d commit 692f8d1
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,31 @@
# Upgrade Guide

## v1.4.3 -> v1.5.0

A new migration needs to be run. Run:

```shell
php artisan vendor:publish
```
then

```shell
php artisan migrate
```

or you add the migration manually:

```php
Schema::table('approvals', function (Blueprint $table) {
$table->unsignedBigInteger('foreign_key')->nullable()->after('original_data');
});
```

> [!IMPORTANT]
> The namespace for the package has changed.
Be sure to replace any instance of `Cjmellor\Approval` to `Approval\Approval`

## v1.4.2 -> 1.4.3

If you wish to audit which User set the state for the Model, you need to publish and run a new Migration.
Expand Down

0 comments on commit 692f8d1

Please sign in to comment.