Skip to content

Commit

Permalink
fix users.groups using unsupported json type in mariadb (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fenrikur authored Aug 14, 2023
1 parent 1ac3d89 commit 2197f76
Showing 1 changed file with 29 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('users', function (Blueprint $table) {
$table->longText('groups')->change();
$table->longText('groups')->nullable()->change();
});
}

/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('users', function (Blueprint $table) {
$table->json('groups')->change();
});
}
};

0 comments on commit 2197f76

Please sign in to comment.