-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Mior Muhammad Zaki <[email protected]>
- Loading branch information
Showing
2 changed files
with
55 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<?php | ||
|
||
namespace Orchestra\Canvas\Core\Commands; | ||
|
||
use Orchestra\Canvas\Core\Concerns\MigrationGenerator; | ||
|
||
class MigrationGeneratorCommand extends \Illuminate\Console\MigrationGeneratorCommand | ||
Check failure on line 7 in src/Commands/MigrationGeneratorCommand.php GitHub Actions / PHP8.2 on ubuntu-latest (highest)
Check failure on line 7 in src/Commands/MigrationGeneratorCommand.php GitHub Actions / PHP8.2 on ubuntu-latest (highest)
|
||
{ | ||
use MigrationGenerator; | ||
|
||
/** | ||
* Create a new notifications table command instance. | ||
* | ||
* @param \Illuminate\Filesystem\Filesystem $files | ||
* @return void | ||
*/ | ||
public function __construct(Filesystem $files) | ||
Check failure on line 17 in src/Commands/MigrationGeneratorCommand.php GitHub Actions / PHP8.2 on ubuntu-latest (highest)
Check failure on line 17 in src/Commands/MigrationGeneratorCommand.php GitHub Actions / PHP8.2 on ubuntu-latest (highest)
|
||
{ | ||
parent::__construct($files); | ||
Check failure on line 19 in src/Commands/MigrationGeneratorCommand.php GitHub Actions / PHP8.2 on ubuntu-latest (highest)
|
||
|
||
$this->addGeneratorPresetOptions(); | ||
} | ||
|
||
/** | ||
* Create a base migration file for the table. | ||
* | ||
* @param string $table | ||
* @return string | ||
*/ | ||
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); | ||
} | ||
} |
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