From 36b272d1835bed3493488e298c1629abcba75634 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Sat, 21 Jul 2018 17:12:51 +0930 Subject: [PATCH] Change TIMESTAMP columns to DATETIME --- ...stration_tokens_created_at_to_datetime.php | 27 +++++++++++++++++++ ...ge_email_tokens_created_at_to_datetime.php | 27 +++++++++++++++++++ ...password_tokens_created_at_to_datetime.php | 27 +++++++++++++++++++ 3 files changed, 81 insertions(+) create mode 100644 framework/core/migrations/2018_01_11_102100_change_registration_tokens_created_at_to_datetime.php create mode 100644 framework/core/migrations/2018_01_15_072800_change_email_tokens_created_at_to_datetime.php create mode 100644 framework/core/migrations/2018_01_18_134600_change_password_tokens_created_at_to_datetime.php diff --git a/framework/core/migrations/2018_01_11_102100_change_registration_tokens_created_at_to_datetime.php b/framework/core/migrations/2018_01_11_102100_change_registration_tokens_created_at_to_datetime.php new file mode 100644 index 000000000..7a5dc8cf6 --- /dev/null +++ b/framework/core/migrations/2018_01_11_102100_change_registration_tokens_created_at_to_datetime.php @@ -0,0 +1,27 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +use Illuminate\Database\Schema\Blueprint; +use Illuminate\Database\Schema\Builder; + +return [ + 'up' => function (Builder $schema) { + $schema->table('registration_tokens', function (Blueprint $table) { + $table->dateTime('created_at')->change(); + }); + }, + + 'down' => function (Builder $schema) { + $schema->table('registration_tokens', function (Blueprint $table) { + $table->timestamp('created_at')->change(); + }); + } +]; diff --git a/framework/core/migrations/2018_01_15_072800_change_email_tokens_created_at_to_datetime.php b/framework/core/migrations/2018_01_15_072800_change_email_tokens_created_at_to_datetime.php new file mode 100644 index 000000000..7a4c8e218 --- /dev/null +++ b/framework/core/migrations/2018_01_15_072800_change_email_tokens_created_at_to_datetime.php @@ -0,0 +1,27 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +use Illuminate\Database\Schema\Blueprint; +use Illuminate\Database\Schema\Builder; + +return [ + 'up' => function (Builder $schema) { + $schema->table('email_tokens', function (Blueprint $table) { + $table->dateTime('created_at')->change(); + }); + }, + + 'down' => function (Builder $schema) { + $schema->table('email_tokens', function (Blueprint $table) { + $table->timestamp('created_at')->change(); + }); + } +]; diff --git a/framework/core/migrations/2018_01_18_134600_change_password_tokens_created_at_to_datetime.php b/framework/core/migrations/2018_01_18_134600_change_password_tokens_created_at_to_datetime.php new file mode 100644 index 000000000..f552e9cf9 --- /dev/null +++ b/framework/core/migrations/2018_01_18_134600_change_password_tokens_created_at_to_datetime.php @@ -0,0 +1,27 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +use Illuminate\Database\Schema\Blueprint; +use Illuminate\Database\Schema\Builder; + +return [ + 'up' => function (Builder $schema) { + $schema->table('password_tokens', function (Blueprint $table) { + $table->dateTime('created_at')->change(); + }); + }, + + 'down' => function (Builder $schema) { + $schema->table('password_tokens', function (Blueprint $table) { + $table->timestamp('created_at')->change(); + }); + } +];