Skip to content

Commit

Permalink
Prepare 5.0.0 release.
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone committed Apr 3, 2020
1 parent 868fa50 commit a3f3d78
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 11 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG-4.x.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Release Note for v4.0
# Release Note for 4.x

This changelog references the relevant changes (bug and security fixes) done to `orchestra/tenanti`.

Expand All @@ -17,7 +17,7 @@ Released: 2019-09-03

### Changes

* Update support for Laravel Framework 6.0+.
* Update support for Laravel Framework v6.
* Improves support for Lumen Framework.

### Breaking Changes
Expand Down
27 changes: 27 additions & 0 deletions CHANGELOG-5.x.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Release Note for 5.x

This changelog references the relevant changes (bug and security fixes) done to `orchestra/tenanti`.

## 5.0.0

Released: 2020-04-03

### Added

* Added `Orchestra\Tenanti\Migrator\MigrationWriter`.
* Added `usingConnection()` and `outputUsing()` helper method to `Orchestra\Tenanti\Migrator\Migrator`.

### Changes

* Update support for Laravel Framework v5.
* Replace the following on `Orchestra\Tenanti\Migrator\Operation`:
- `executeFor()` with `find()`.
- `executeForEach()` with `each()`.
- `getModel()` with `model()`.
- `getModelName()` with `modelName()`.
- `resolveMigrator()` with `migrator()`.
- `asConnection` with `connectionName()`
- `bindWithKey()` with `nomalize()`.
- `resolveConnection()` with `connection()`.
- `resolveMigrationTableName()` with `migrationTableName()`.
- `getTablePrefix()` with `tablePrefix()`.
17 changes: 8 additions & 9 deletions src/CommandServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Orchestra\Tenanti;

use Illuminate\Contracts\Container\Container;
use Orchestra\Support\Providers\CommandServiceProvider as ServiceProvider;
use Orchestra\Tenanti\Console\InstallCommand;
use Orchestra\Tenanti\Console\MigrateCommand;
Expand Down Expand Up @@ -46,7 +45,7 @@ class CommandServiceProvider extends ServiceProvider
*/
protected function registerQueuedCommand(): void
{
$this->app->singleton('orchestra.commands.tenanti.queue', static function (Container $app) {
$this->app->singleton('orchestra.commands.tenanti.queue', static function () {
return new QueuedCommand();
});
}
Expand All @@ -56,7 +55,7 @@ protected function registerQueuedCommand(): void
*/
protected function registerInstallCommand(): void
{
$this->app->singleton('orchestra.commands.tenanti.install', static function (Container $app) {
$this->app->singleton('orchestra.commands.tenanti.install', static function () {
return new InstallCommand();
});
}
Expand All @@ -66,7 +65,7 @@ protected function registerInstallCommand(): void
*/
protected function registerMakeCommand(): void
{
$this->app->singleton('orchestra.commands.tenanti.make', static function (Container $app) {
$this->app->singleton('orchestra.commands.tenanti.make', static function () {
// Once we have the migration creator registered, we will create the command
// and inject the creator. The creator is responsible for the actual file
// creation of the migrations, and may be extended by these developers.
Expand All @@ -79,7 +78,7 @@ protected function registerMakeCommand(): void
*/
protected function registerMigrateCommand(): void
{
$this->app->singleton('orchestra.commands.tenanti.migrate', static function (Container $app) {
$this->app->singleton('orchestra.commands.tenanti.migrate', static function () {
return new MigrateCommand();
});
}
Expand All @@ -89,7 +88,7 @@ protected function registerMigrateCommand(): void
*/
protected function registerRollbackCommand(): void
{
$this->app->singleton('orchestra.commands.tenanti.rollback', static function (Container $app) {
$this->app->singleton('orchestra.commands.tenanti.rollback', static function () {
return new RollbackCommand();
});
}
Expand All @@ -99,7 +98,7 @@ protected function registerRollbackCommand(): void
*/
protected function registerResetCommand(): void
{
$this->app->singleton('orchestra.commands.tenanti.reset', static function (Container $app) {
$this->app->singleton('orchestra.commands.tenanti.reset', static function () {
return new ResetCommand();
});
}
Expand All @@ -109,7 +108,7 @@ protected function registerResetCommand(): void
*/
protected function registerRefreshCommand(): void
{
$this->app->singleton('orchestra.commands.tenanti.refresh', static function (Container $app) {
$this->app->singleton('orchestra.commands.tenanti.refresh', static function () {
return new RefreshCommand();
});
}
Expand All @@ -119,7 +118,7 @@ protected function registerRefreshCommand(): void
*/
protected function registerTinkerCommand(): void
{
$this->app->singleton('orchestra.commands.tenanti.tinker', static function (Container $app) {
$this->app->singleton('orchestra.commands.tenanti.tinker', static function () {
return new TinkerCommand();
});
}
Expand Down

0 comments on commit a3f3d78

Please sign in to comment.