From 1f0c10f70a2853b68a08f6ebd4e46d51f1a346d5 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Sun, 24 Jul 2016 10:48:38 +0200 Subject: [PATCH] Removed null values for fields that are required. --- src/application/migrations/006_add_calendar_view_setting.php | 3 +-- .../migrations/007_add_service_availabilities_type.php | 3 +-- .../migrations/008_add_service_attendants_number.php | 1 - 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/application/migrations/006_add_calendar_view_setting.php b/src/application/migrations/006_add_calendar_view_setting.php index b6739983..f7383fc1 100644 --- a/src/application/migrations/006_add_calendar_view_setting.php +++ b/src/application/migrations/006_add_calendar_view_setting.php @@ -19,8 +19,7 @@ class Migration_Add_calendar_view_setting extends CI_Migration { 'calendar_view' => [ 'type' => 'VARCHAR', 'constraint' => '32', - 'default' => 'default', - 'null' => true + 'default' => 'default' ] ]; diff --git a/src/application/migrations/007_add_service_availabilities_type.php b/src/application/migrations/007_add_service_availabilities_type.php index 48c0b2a5..44809d71 100644 --- a/src/application/migrations/007_add_service_availabilities_type.php +++ b/src/application/migrations/007_add_service_availabilities_type.php @@ -19,8 +19,7 @@ class Migration_Add_service_availabilities_type extends CI_Migration { 'availabilities_type' => [ 'type' => 'VARCHAR', 'constraint' => '32', - 'default' => 'flexible', - 'null' => true, + 'default' => 'flexible', 'after' => 'description' ] ]; diff --git a/src/application/migrations/008_add_service_attendants_number.php b/src/application/migrations/008_add_service_attendants_number.php index 323f32f4..6739e8ce 100644 --- a/src/application/migrations/008_add_service_attendants_number.php +++ b/src/application/migrations/008_add_service_attendants_number.php @@ -20,7 +20,6 @@ class Migration_Add_service_attendants_number extends CI_Migration { 'type' => 'INT', 'constraint' => '11', 'default' => '1', - 'null' => true, 'after' => 'availabilities_type' ] ];