-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(migrations) split plugins migrations
Proper architecture and CLI update for plugin-specific migrations. This is the first step in separating the plugins out of the core repo as planed for 0.5.0. It is related to #93. This is implemented by using the same table as before (`schema_migrations`) to keep track of the executed migrations, except that each plugin and the core itself all have their own row. For simplifications, migrations (plugins or core) now live in a single file. The `database` folder disappeared for core and the migration lives in the DAO. Plugins have migrations in a `migration` folder, named after the type of the database (`cassandra.lua` currently). For now, only the keyauth plugin has its own migrations. The `kong migrations up|down` commands slightly changed. It takes a `-t` parameter to specify which migrations to run (core or a plugin name) and is running all migrations by default. `kong migrations list` lists all executed migration for the core and all plugins. - Needs tests (integration) - Old unit tests were removed - `database` was removed - `kong migrations` slightly changed
- Loading branch information
1 parent
06ef332
commit 9ce8000
Showing
11 changed files
with
347 additions
and
639 deletions.
There are no files selected for viewing
65 changes: 0 additions & 65 deletions
65
database/migrations/cassandra/2015-01-12-175310_init_schema.lua
This file was deleted.
Oops, something went wrong.
47 changes: 0 additions & 47 deletions
47
database/migrations/cassandra/2015-04-24-154530_plugins.lua
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
Oops, something went wrong.