From b84284d061eb4a04e1caefbbda23de8d0fab4cd6 Mon Sep 17 00:00:00 2001 From: Okhin Date: Thu, 8 Nov 2018 16:29:05 +0100 Subject: [PATCH] Removing the default field --- .../20181108152608_remove_address_defaut.php | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 db/migrations/20181108152608_remove_address_defaut.php diff --git a/db/migrations/20181108152608_remove_address_defaut.php b/db/migrations/20181108152608_remove_address_defaut.php new file mode 100644 index 0000000..a80e3bb --- /dev/null +++ b/db/migrations/20181108152608_remove_address_defaut.php @@ -0,0 +1,46 @@ +table('adresses'); + $table->removeColumn('defaut') + ->save(); + } + + public function down() + { + $table = $this->table('adresses'); + $table->addColumn('defaut', 'boolean') + ->save(); + } +} -- GitLab