diff --git a/CHANGELOG.md b/CHANGELOG.md index e7dddae..60301af 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,16 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## [Unreleased] +### Changed +* Renamed the migration to include a timestamp to ensure only one migration is created. +* Updated README.md + +### Added +* Added new `enable_migrations` option to the config file to allow for the disabling of the migrations. +* Added new `auto_migrate` option to the config file to allow for the disabling of the automatic running of the migrations. +* Added new UPGRADE.md for upgrade instructions. + ## [1.1.4] - 2022-11-02 ### Fixed * Add check for migrations to make sure the table doesn't exist before trying to create it. by @chrispelzer in https://github.com/waynestate/nova-ckeditor4-field/pull/68 https://github.com/waynestate/nova-ckeditor4-field/issues/67 diff --git a/UPGRADING.md b/UPGRADING.md new file mode 100644 index 0000000..a6e8dd3 --- /dev/null +++ b/UPGRADING.md @@ -0,0 +1,21 @@ +## From v1.1.4 to v1.2.0 + +Added support for Laravel loadMigrationsFrom to allow for migrations to be handled without needing to publish them. + +Previous versions the migration was being published with the timestamp of the time of publishing which caused multiple migrations to be published. + +This update renames the migration that is published to include the timestamp from the time it was initially committed to prevent multiple migrations from being published. + +You'll also want to make sure that your published `/config/nova/ckeditor-field.php` has the new `enable_migrations` and `auto_migrate` options. +```php + 'migrations' => [ + 'enable_migrations' => true, + 'auto_migrate' => true, + ], +``` + +It is possible that you could have multiple migrations if you have previously published the migrations. +If this is the case, you will need to manually delete the migrations that were published before this update and republish the migrations. +```php +php artisan vendor:publish --tag=nova-ckeditor4-field-migrations +```