From 751b5c719f15433c66e4dc8d8bf37a4a9b6363d8 Mon Sep 17 00:00:00 2001 From: kaioken Date: Sun, 20 Oct 2024 10:25:58 -0400 Subject: [PATCH] refact: custom field entity id --- ...0_142455_update_custom_field_entity_id.php | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 database/migrations/2024_10_20_142455_update_custom_field_entity_id.php diff --git a/database/migrations/2024_10_20_142455_update_custom_field_entity_id.php b/database/migrations/2024_10_20_142455_update_custom_field_entity_id.php new file mode 100644 index 000000000..e31a0db54 --- /dev/null +++ b/database/migrations/2024_10_20_142455_update_custom_field_entity_id.php @@ -0,0 +1,29 @@ +unsignedBigInteger('entity_id')->change(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::table('apps_custom_fields', function (Blueprint $table) { + // Reverse back to CHAR(36) if needed + $table->char('entity_id', 36)->change(); + }); + } +};