Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone committed Oct 3, 2023
1 parent 0d53d4b commit 246833f
Show file tree
Hide file tree
Showing 7 changed files with 73 additions and 7 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"illuminate/console": "^10.26",
"illuminate/database": "^10.26",
"illuminate/support": "^10.26",
"orchestra/canvas-core": "^8.8",
"orchestra/canvas-core": "^8.9",
"orchestra/testbench-core": "^8.11",
"symfony/yaml": "^6.2"
},
Expand Down
13 changes: 12 additions & 1 deletion src/Console/BatchesTableCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,19 @@ public function __construct(Filesystem $files, Composer $composer)
* @param string $table
* @return string
*/
protected function createBaseMigration($table = 'job_batches')
protected function createBaseMigration($table)
{
return $this->createBaseMigrationUsingCanvas($table);
}

/**
* Determine whether a migration for the table already exists.
*
* @param string $table
* @return bool
*/
protected function migrationExists($table)
{
return $this->migrationExistsUsingCanvas($table);
}
}
13 changes: 12 additions & 1 deletion src/Console/CacheTableCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function __construct(Filesystem $files, Composer $composer)
}

/**
* Create a base migration file for the session.
* Create a base migration file for the table.
*
* @param string $table
* @return string
Expand All @@ -39,4 +39,15 @@ protected function createBaseMigration($table)
{
return $this->createBaseMigrationUsingCanvas($table);
}

/**
* Determine whether a migration for the table already exists.
*
* @param string $table
* @return bool
*/
protected function migrationExists($table)
{
return $this->migrationExistsUsingCanvas($table);
}
}
13 changes: 12 additions & 1 deletion src/Console/FailedTableCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,19 @@ public function __construct(Filesystem $files, Composer $composer)
* @param string $table
* @return string
*/
protected function createBaseMigration($table = 'failed_jobs')
protected function createBaseMigration($table)
{
return $this->createBaseMigrationUsingCanvas($table);
}

/**
* Determine whether a migration for the table already exists.
*
* @param string $table
* @return bool
*/
protected function migrationExists($table)
{
return $this->migrationExistsUsingCanvas($table);
}
}
13 changes: 12 additions & 1 deletion src/Console/NotificationTableCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function __construct(Filesystem $files, Composer $composer)
}

/**
* Create a base migration file for the notifications.
* Create a base migration file for the table.
*
* @param string $table
* @return string
Expand All @@ -39,4 +39,15 @@ protected function createBaseMigration($table)
{
return $this->createBaseMigrationUsingCanvas($table);
}

/**
* Determine whether a migration for the table already exists.
*
* @param string $table
* @return bool
*/
protected function migrationExists($table)
{
return $this->migrationExistsUsingCanvas($table);
}
}
13 changes: 12 additions & 1 deletion src/Console/QueueTableCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,19 @@ public function __construct(Filesystem $files, Composer $composer)
* @param string $table
* @return string
*/
protected function createBaseMigration($table = 'jobs')
protected function createBaseMigration($table)
{
return $this->createBaseMigrationUsingCanvas($table);
}

/**
* Determine whether a migration for the table already exists.
*
* @param string $table
* @return bool
*/
protected function migrationExists($table)
{
return $this->migrationExistsUsingCanvas($table);
}
}
13 changes: 12 additions & 1 deletion src/Console/SessionTableCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function __construct(Filesystem $files, Composer $composer)
}

/**
* Create a base migration file for the session.
* Create a base migration file for the table.
*
* @param string $table
* @return string
Expand All @@ -39,4 +39,15 @@ protected function createBaseMigration($table)
{
return $this->createBaseMigrationUsingCanvas($table);
}

/**
* Determine whether a migration for the table already exists.
*
* @param string $table
* @return bool
*/
protected function migrationExists($table)
{
return $this->migrationExistsUsingCanvas($table);
}
}

0 comments on commit 246833f

Please sign in to comment.