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 39b7937 commit 96d70c4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@
"php": "^8.1",
"composer-runtime-api": "^2.2",
"composer/semver": "^3.0",
"illuminate/console": "^10.17",
"illuminate/filesystem": "^10.17"
"illuminate/console": "^10.26",
"illuminate/filesystem": "^10.26"
},
"require-dev": {
"fakerphp/faker": "^1.21",
"laravel/framework": "^10.17",
"laravel/framework": "^10.26",
"laravel/pint": "^1.6",
"mockery/mockery": "^1.5.1",
"orchestra/testbench-core": "^8.11",
Expand All @@ -45,7 +45,7 @@
"symfony/yaml": "^6.2"
},
"conflict": {
"orchestra/canvas": "<8.9.0",
"orchestra/canvas": "<8.11.0",
"orchestra/testbench-core": "<8.2.0"
},
"config": {
Expand Down
10 changes: 10 additions & 0 deletions src/Concerns/MigrationGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,14 @@ protected function createBaseMigrationUsingCanvas(string $table): string
"create_{$table}_table", $this->generatorPreset()->migrationPath()
);
}

/**
* Determine whether a migration for the table already exists.
*/
protected function migrationExistsUsingCanvas(string $table): bool
{
return \count($this->files->glob(
$this->laravel->joinPaths($this->generatorPreset()->migrationPath(), '*_*_*_*_create_'.$table.'_table.php')
)) !== 0;
}
}

0 comments on commit 96d70c4

Please sign in to comment.