From e1731d2ed37e49e75360963fa4e12da1df76829b Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Fri, 19 May 2023 14:15:18 +0100 Subject: [PATCH] Increase article title and URL column length in migration. - Increase character lengths for `titleurl` and `url` columns in `articles` table - Add migration file to alter column lengths in database --- ...19_131031_alter_article_column_lengths.php | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 database/migrations/2023_05_19_131031_alter_article_column_lengths.php diff --git a/database/migrations/2023_05_19_131031_alter_article_column_lengths.php b/database/migrations/2023_05_19_131031_alter_article_column_lengths.php new file mode 100644 index 00000000..15db6c2c --- /dev/null +++ b/database/migrations/2023_05_19_131031_alter_article_column_lengths.php @@ -0,0 +1,29 @@ +string('titleurl', 255)->change(); + $table->string('url', 255)->change(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::table('articles', function (Blueprint $table) { + // Converting back to shorter lengths might cause issues + }); + } +};