Skip to content

Commit

Permalink
More migration fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Tarpsvo committed Dec 6, 2019
1 parent 7456ec5 commit a380d63
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2.2.1] - 2019-12-06

### Changed

- Fix possible index name conflict in latest migration (by [@KasparRosin](https://github.com/KasparRosin))

## [2.2.0] - 2019-12-05

### Added
Expand Down Expand Up @@ -327,6 +333,7 @@ php artisan vendor:publish --provider="OptimistDigital\NovaPageManager\ToolServi
- Programmatically created templates for pages and regions
- Multilanguage support

[2.2.1]: https://github.com/optimistdigital/nova-page-manager/compare/2.2.0...2.2.1
[2.2.0]: https://github.com/optimistdigital/nova-page-manager/compare/2.1.1...2.2.0
[2.1.1]: https://github.com/optimistdigital/nova-page-manager/compare/2.1.0...2.1.1
[2.1.0]: https://github.com/optimistdigital/nova-page-manager/compare/2.0.3...2.1.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ public function up()
$table->index('locale_parent_id', 'nova_page_manager_pages_locale_parent_id_index');
$table->dropUnique('nova_page_manager_locale_parent_id_locale_unique');
$table->unique(['locale_parent_id', 'locale', 'published'], 'nova_page_manager_locale_parent_id_locale_published_unique');
$table->dropIndex('nova_page_manager_pages_locale_parent_id_index');
});
}

Expand All @@ -47,9 +46,9 @@ public function down()
$table->dropUnique('nova_page_manager_locale_slug_published_unique');
$table->unique(['locale', 'slug'], 'nova_page_manager_locale_slug_unique');

$table->index('locale_parent_id', 'nova_page_manager_pages_locale_parent_id_index');
$table->unique(['locale_parent_id', 'locale'], 'nova_page_manager_locale_parent_id_locale_unique');
$table->dropIndex('nova_page_manager_pages_locale_parent_id_index');
$table->dropUnique('nova_page_manager_locale_parent_id_locale_published_unique');
$table->unique(['locale_parent_id', 'locale'], 'nova_page_manager_locale_parent_id_locale_unique');
});
}
}

0 comments on commit a380d63

Please sign in to comment.