Skip to content

Commit

Permalink
Error while running migration #10
Browse files Browse the repository at this point in the history
  • Loading branch information
3x1io committed Jun 21, 2024
1 parent e36a5e2 commit 7f212c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Services/Concerns/GenerateMigrations.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ trait GenerateMigrations
*/
private function generateMigrations(): void
{
$migrationsPath = module_path($this->moduleName) ."/Database/migrations/";
$migrationsPath = module_path($this->moduleName) ."/database/migrations/";
if(!File::exists($migrationsPath)){
File::makeDirectory($migrationsPath);
}
Expand All @@ -30,7 +30,7 @@ private function generateMigrations(): void

$this->generateStubs(
$this->stubPath . 'migration.stub',
module_path($this->moduleName) ."/Database/migrations/". date('Y_m_d_h_mm_ss') . '_create_' . $this->tableName . '_table.php',
module_path($this->moduleName) ."/database/migrations/". date('Y_m_d_h_mm_ss') . '_create_' . $this->tableName . '_table.php',
[
"table" => $this->tableName,
"fields" => $this->getFields($this->table->tableCols)
Expand Down

0 comments on commit 7f212c1

Please sign in to comment.