Skip to content

Commit

Permalink
Fixes SQLite migration rollback
Browse files Browse the repository at this point in the history
fixes #1702 based on laravel/framework#51318 (comment)

Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone committed Aug 12, 2024
1 parent 0349c66 commit fc6891b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ public function up(): void
public function down(): void
{
Schema::table('users', function (Blueprint $table) {
$table->dropIndex([
'stripe_id',
]);

$table->dropColumn([
'stripe_id',
'pm_type',
Expand Down
6 changes: 6 additions & 0 deletions testbench.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,9 @@ providers:

migrations:
- database/migrations

workbench:
build:
- create-sqlite-db
- db:wipe
- migrate:fresh

0 comments on commit fc6891b

Please sign in to comment.