From e3f0b2018f23a031795a1d9f736d8388b5f66892 Mon Sep 17 00:00:00 2001 From: Davide Iadeluca Date: Fri, 22 Nov 2024 10:35:05 +0100 Subject: [PATCH] refactor: split migration --- ..._increase_email_field_length_of_users.php} | 0 ...ase_email_field_length_in_email_tokens.php | 25 +++++++++++++++++++ 2 files changed, 25 insertions(+) rename framework/core/migrations/{2024_11_18_000000_increase_email_field_length.php => 2024_11_18_000000_increase_email_field_length_of_users.php} (100%) create mode 100644 framework/core/migrations/2024_11_22_000000_increase_email_field_length_in_email_tokens.php diff --git a/framework/core/migrations/2024_11_18_000000_increase_email_field_length.php b/framework/core/migrations/2024_11_18_000000_increase_email_field_length_of_users.php similarity index 100% rename from framework/core/migrations/2024_11_18_000000_increase_email_field_length.php rename to framework/core/migrations/2024_11_18_000000_increase_email_field_length_of_users.php diff --git a/framework/core/migrations/2024_11_22_000000_increase_email_field_length_in_email_tokens.php b/framework/core/migrations/2024_11_22_000000_increase_email_field_length_in_email_tokens.php new file mode 100644 index 0000000000..d83df4db06 --- /dev/null +++ b/framework/core/migrations/2024_11_22_000000_increase_email_field_length_in_email_tokens.php @@ -0,0 +1,25 @@ + function (Builder $schema) { + $schema->table('email_tokens', function (Blueprint $table) { + $table->string('email', 254)->change(); + }); + }, + + 'down' => function (Builder $schema) { + $schema->table('email_tokens', function (Blueprint $table) { + $table->string('email', 150)->change(); + }); + } +];