Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove down in migrations #37

Merged
merged 2 commits into from
Apr 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 44 additions & 4 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
parameters:
ignoreErrors:
-
message: "#^Command \"somake\\:builder\" does not have option \"model\"\\.$#"
count: 2
path: src/Commands/BuilderCommand.php

-
message: "#^Left side of && is always false\\.$#"
count: 1
path: src/Commands/BuilderCommand.php

-
message: "#^Method Soyhuce\\\\Somake\\\\Commands\\\\BuilderCommand\\:\\:askModel\\(\\) should return class\\-string\\<Illuminate\\\\Database\\\\Eloquent\\\\Model\\> but returns array\\|bool\\|string\\.$#"
count: 1
Expand All @@ -16,7 +26,12 @@ parameters:
path: src/Commands/BuilderCommand.php

-
message: "#^Method Soyhuce\\\\Somake\\\\Commands\\\\FactoryCommand\\:\\:askModel\\(\\) should return class\\-string\\<Illuminate\\\\Database\\\\Eloquent\\\\Model\\> but returns array\\|bool\\|string\\.$#"
message: "#^Left side of && is always true\\.$#"
count: 1
path: src/Commands/FactoryCommand.php

-
message: "#^Method Soyhuce\\\\Somake\\\\Commands\\\\FactoryCommand\\:\\:askModel\\(\\) should return class\\-string\\<Illuminate\\\\Database\\\\Eloquent\\\\Model\\> but returns string\\.$#"
count: 1
path: src/Commands/FactoryCommand.php

Expand All @@ -30,6 +45,16 @@ parameters:
count: 1
path: src/Commands/FactoryCommand.php

-
message: "#^Command \"somake\\:policy\" does not have option \"model\"\\.$#"
count: 2
path: src/Commands/PolicyCommand.php

-
message: "#^Left side of && is always false\\.$#"
count: 1
path: src/Commands/PolicyCommand.php

-
message: "#^Method Soyhuce\\\\Somake\\\\Commands\\\\PolicyCommand\\:\\:askModel\\(\\) should return class\\-string\\<Illuminate\\\\Database\\\\Eloquent\\\\Model\\> but returns array\\|bool\\|string\\.$#"
count: 1
Expand Down Expand Up @@ -60,6 +85,16 @@ parameters:
count: 1
path: src/Commands/RequestCommand.php

-
message: "#^Command \"somake\\:resource\" does not have option \"model\"\\.$#"
count: 2
path: src/Commands/ResourceCommand.php

-
message: "#^Left side of && is always false\\.$#"
count: 1
path: src/Commands/ResourceCommand.php

-
message: "#^Method Soyhuce\\\\Somake\\\\Commands\\\\ResourceCommand\\:\\:askModel\\(\\) should return class\\-string\\<Illuminate\\\\Database\\\\Eloquent\\\\Model\\> but returns array\\|bool\\|string\\.$#"
count: 1
Expand All @@ -76,17 +111,17 @@ parameters:
path: src/Commands/ResourceCommand.php

-
message: "#^Method Soyhuce\\\\Somake\\\\Commands\\\\TestCommand\\:\\:askClass\\(\\) should return class\\-string but returns array\\|bool\\|string\\.$#"
message: "#^Left side of && is always true\\.$#"
count: 1
path: src/Commands/TestCommand.php

-
message: "#^Method Soyhuce\\\\Somake\\\\Commands\\\\TestCommand\\:\\:askClass\\(\\) should return class\\-string but returns string\\|null\\.$#"
message: "#^Method Soyhuce\\\\Somake\\\\Commands\\\\TestCommand\\:\\:askClass\\(\\) should return class\\-string but returns string\\.$#"
count: 1
path: src/Commands/TestCommand.php

-
message: "#^Method Soyhuce\\\\Somake\\\\Commands\\\\TestCommand\\:\\:askType\\(\\) should return string but returns array\\|bool\\|string\\|null\\.$#"
message: "#^Method Soyhuce\\\\Somake\\\\Commands\\\\TestCommand\\:\\:askClass\\(\\) should return class\\-string but returns string\\|null\\.$#"
count: 1
path: src/Commands/TestCommand.php

Expand All @@ -95,6 +130,11 @@ parameters:
count: 1
path: src/Commands/TestCommand.php

-
message: "#^Method Soyhuce\\\\Somake\\\\Commands\\\\TestCommand\\:\\:askType\\(\\) should return string but returns string\\|null\\.$#"
count: 1
path: src/Commands/TestCommand.php

-
message: "#^Method Soyhuce\\\\Somake\\\\Commands\\\\TestCommand\\:\\:disambiguateClass\\(\\) should return string but returns array\\|string\\.$#"
count: 1
Expand Down
5 changes: 0 additions & 5 deletions resources/stubs/migration.create.stub
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,4 @@ return new class extends Migration
$table->timestamps();
});
}

public function down(): void
{
Schema::dropIfExists('{{ table }}');
}
};
5 changes: 0 additions & 5 deletions resources/stubs/migration.stub
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,4 @@ return new class extends Migration
{
//
}

public function down(): void
{
//
}
};
7 changes: 0 additions & 7 deletions resources/stubs/migration.update.stub
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,4 @@ return new class extends Migration
//
});
}

public function down(): void
{
Schema::table('{{ table }}', function (Blueprint $table) {
//
});
}
};
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,4 @@ public function up(): void
$table->timestamps();
});
}

public function down(): void
{
Schema::dropIfExists('tests');
}
};