From 0e433a5b328004940846c0680a57caf605633627 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 11 Aug 2018 22:35:07 -0600 Subject: [PATCH] Add migration to support longer captions --- ...te_status_table_change_caption_to_text.php | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 database/migrations/2018_08_12_042648_update_status_table_change_caption_to_text.php diff --git a/database/migrations/2018_08_12_042648_update_status_table_change_caption_to_text.php b/database/migrations/2018_08_12_042648_update_status_table_change_caption_to_text.php new file mode 100644 index 000000000..caad9472b --- /dev/null +++ b/database/migrations/2018_08_12_042648_update_status_table_change_caption_to_text.php @@ -0,0 +1,38 @@ +getDatabasePlatform() + ->registerDoctrineTypeMapping('enum', 'string'); + } + + /** + * Run the migrations. + * + * @return void + */ + public function up() + { + Schema::table('statuses', function ($table) { + $table->text('caption')->change(); + $table->text('rendered')->change(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + // + } +}