diff --git a/migrations/2024_11_12_073145_add_json_type_to_custom_field_plain_types_table.php b/migrations/2024_11_12_073145_add_json_type_to_custom_field_plain_types_table.php index 770c3e2..58bd2c8 100644 --- a/migrations/2024_11_12_073145_add_json_type_to_custom_field_plain_types_table.php +++ b/migrations/2024_11_12_073145_add_json_type_to_custom_field_plain_types_table.php @@ -13,6 +13,13 @@ */ public function up() { + + $exists = DB::table('custom_field_plain_types')->where('name', 'json')->exists(); + if ($exists) { + // already exists + return; + } + $types = ['json']; $plainTypes = [];