forked from Kong/kong
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(dao) ensure migrations have unique names
Thanks Ilya Kogan for the patch. Thibault: When retrieving migrations for core and plugins, we now ensure that: 1. They have a name 2. The name is a string 3. The name is unique among other migrations The unicity check is not namespaced per plugin/core, but enforced on all migrations. While the current implementation does not require the migrations of two different plugins to have unique names, it is a safer default since: - two migrations of the same name in different plugins have probably been copy/pasted, without even updating the date included in its name. - it is more future proof, especially considering our future work on improving/rewriting the migrations. Signed-off-by: Thibault Charbonnier <[email protected]>
- Loading branch information
1 parent
0a2d7c5
commit 8c9b416
Showing
1 changed file
with
42 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters