From 74221e029e15e9efee78f0bd6c5c7d8880e1b09c Mon Sep 17 00:00:00 2001 From: Emma Fabre Date: Wed, 10 Jul 2024 12:07:52 +0200 Subject: [PATCH] Add migration to officially change type of column to plain text --- ..._10_120617_update_organizer_id_to_text.php | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 database/migrations/2024_07_10_120617_update_organizer_id_to_text.php diff --git a/database/migrations/2024_07_10_120617_update_organizer_id_to_text.php b/database/migrations/2024_07_10_120617_update_organizer_id_to_text.php new file mode 100644 index 000000000..3515960fd --- /dev/null +++ b/database/migrations/2024_07_10_120617_update_organizer_id_to_text.php @@ -0,0 +1,29 @@ +char('organizer_id', 36)->change(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::table('organizers', function (Blueprint $table) { + $table->uuid('organizer_id')->change(); + }); + } +};