Skip to content

Commit

Permalink
fix: constructor injection parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Jan 12, 2020
1 parent 279d7a5 commit 3e4d27e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion commands/MakeMigration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { BaseCommand, Kernel, args, flags } from '@adonisjs/ace'
import { DatabaseContract } from '@ioc:Adonis/Lucid/Database'
import { ApplicationContract } from '@ioc:Adonis/Core/Application'

@inject([null, 'Adonis/Lucid/Database'])
@inject([null, null, 'Adonis/Lucid/Database'])
export default class MakeMigration extends BaseCommand {
public static commandName = 'make:migration'
public static description = 'Make a new migration file'
Expand Down
2 changes: 1 addition & 1 deletion commands/Migrate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import MigrationsBase from './MigrationsBase'
* The command is meant to migrate the database by execute migrations
* in `up` direction.
*/
@inject([null, 'Adonis/Lucid/Database'])
@inject([null, null, 'Adonis/Lucid/Database'])
export default class Migrate extends MigrationsBase {
public static commandName = 'migration:run'
public static description = 'Run pending migrations'
Expand Down
2 changes: 1 addition & 1 deletion commands/Rollback.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import MigrationsBase from './MigrationsBase'
* The command is meant to migrate the database by execute migrations
* in `up` direction.
*/
@inject([null, 'Adonis/Lucid/Database'])
@inject([null, null, 'Adonis/Lucid/Database'])
export default class Migrate extends MigrationsBase {
public static commandName = 'migration:rollback'
public static description = 'Rollback migrations to a given batch number'
Expand Down
2 changes: 1 addition & 1 deletion commands/Status.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { MigrationListNode } from '@ioc:Adonis/Lucid/Migrator'
* The command is meant to migrate the database by execute migrations
* in `up` direction.
*/
@inject([null, 'Adonis/Lucid/Database'])
@inject([null, null, 'Adonis/Lucid/Database'])
export default class Status extends BaseCommand {
public static commandName = 'migration:status'
public static description = 'Drop existing tables and re-run migrations from start'
Expand Down

0 comments on commit 3e4d27e

Please sign in to comment.