Correct the column names in 025_rename_is_unavailable_column_of_appointments_table.php

This commit is contained in:
Alex Tselegidis 2022-10-03 17:03:22 +03:00
parent 6d413ffdfc
commit 8f2a6b4e33

View file

@ -17,10 +17,10 @@ class Migration_Rename_is_unavailable_column_of_appointments_table extends EA_Mi
*/ */
public function up() public function up()
{ {
if ($this->db->field_exists('is_unavailability', 'appointments')) if ($this->db->field_exists('is_unavailable', 'appointments'))
{ {
$fields = [ $fields = [
'is_unavailability' => [ 'is_unavailable' => [
'name' => 'is_unavailability', 'name' => 'is_unavailability',
'type' => 'TINYINT', 'type' => 'TINYINT',
'constraint' => '4', 'constraint' => '4',
@ -41,7 +41,7 @@ class Migration_Rename_is_unavailable_column_of_appointments_table extends EA_Mi
{ {
$fields = [ $fields = [
'is_unavailability' => [ 'is_unavailability' => [
'name' => 'is_unavailability', 'name' => 'is_unavailable',
'type' => 'TINYINT', 'type' => 'TINYINT',
'constraint' => '4', 'constraint' => '4',
'default' => '0' 'default' => '0'