Skip to content

Commit a62f86c

Browse files
committed
fixed migration issue raised by taqie, thanks
1 parent a589fb1 commit a62f86c

File tree

6 files changed

+7
-8
lines changed

6 files changed

+7
-8
lines changed

app/Commands/Foundation/Migrations/MigrateMakeCommand.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use Illuminate\Support\Str;
66
use Illuminate\Support\Composer;
7-
use Illuminate\Database\Migrations\MigrationCreator;
87
use Illuminate\Database\Console\Migrations\BaseCommand;
98

109
class MigrateMakeCommand extends BaseCommand

app/Commands/Foundation/Migrations/MigrationCreator.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
namespace App\Commands\Foundation\Migrations;
44

5-
use Illuminate\Database\Migrations\MigrationCreator as RealMigrationCreator;
6-
use App\Commands\Helpers\PackageDetail;
75
use Illuminate\Filesystem\Filesystem;
6+
use App\Commands\Helpers\PackageDetail;
7+
use Illuminate\Database\Migrations\MigrationCreator as RealMigrationCreator;
88

99
class MigrationCreator extends RealMigrationCreator
1010
{
1111
use PackageDetail;
1212

13-
public function __construct(Filesystem $files, $customStubPath = __DIR__.'/stubs')
13+
public function __construct(Filesystem $files, $customStubPath = __DIR__ . '/stubs')
1414
{
1515
parent::__construct($files, $customStubPath);
1616
}
@@ -24,7 +24,7 @@ public function __construct(Filesystem $files, $customStubPath = __DIR__.'/stubs
2424
*/
2525
protected function getPath($name, $path)
2626
{
27-
$path = getcwd() . $this->devPath() . '/src/database/migrations';
27+
$path = getcwd() . $this->devPath() . '/database/migrations';
2828
if (!$this->files->isDirectory($path)) {
2929
$this->files->makeDirectory($path, 0777, true);
3030
}

app/Commands/Foundation/Migrations/stubs/create.stub

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class DummyClass extends Migration
1414
public function up()
1515
{
1616
Schema::create('DummyTable', function (Blueprint $table) {
17-
$table->increments('id');
17+
$table->id();
1818
$table->timestamps();
1919
});
2020
}

app/Commands/Helpers/PackageDetail.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ protected function rootNamespace()
4343

4444
public function devPath()
4545
{
46-
return (app()->environment() === 'development') ? '/package/' . $this->getPackageName() . '/' : '';
46+
return (app()->environment() === 'development') ? '/package/' . $this->getPackageName() . '/src' : '';
4747
}
4848

4949
public function getPath($name)

builds/packr

4.66 KB
Binary file not shown.

config/app.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
|
2626
*/
2727

28-
'version' => app('git.version'),
28+
'version' => 'v4.6.2',
2929

3030
/*
3131
|--------------------------------------------------------------------------

0 commit comments

Comments
 (0)