Skip to content

Commit 7262b27

Browse files
authored
Change JSON database column to binary
When using certain databases with certain character sets & collations, we are unable to create JSON columns, however a binary column is perfectly fine in this instance.
1 parent 9612cef commit 7262b27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/database/migrations/2017_05_22_160000_create_settings_lists_table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function up()
1919
Schema::create('settings__lists', function (Blueprint $table)
2020
{
2121
$table->string('setting_key')->index()->unique();
22-
$table->json('setting_value')->nullable();
22+
$table->binary('setting_value')->nullable();
2323
});
2424
}
2525

0 commit comments

Comments
 (0)