Fix condition on new field migration files

This commit is contained in:
Alex Tselegidis 2022-11-30 11:22:20 +01:00
parent c1c588be22
commit 80e52ca36d
3 changed files with 3 additions and 3 deletions

View file

@ -37,7 +37,7 @@ class Migration_Add_color_column_to_services_table extends EA_Migration {
*/
public function down()
{
if ( ! $this->db->field_exists('color', 'services'))
if ($this->db->field_exists('color', 'services'))
{
$this->dbforge->drop_column('services', 'color');
}

View file

@ -37,7 +37,7 @@ class Migration_Add_color_column_to_appointments_table extends EA_Migration {
*/
public function down()
{
if ( ! $this->db->field_exists('color', 'appointments'))
if ($this->db->field_exists('color', 'appointments'))
{
$this->dbforge->drop_column('appointments', 'color');
}

View file

@ -37,7 +37,7 @@ class Migration_Add_status_column_to_appointments_table extends EA_Migration {
*/
public function down()
{
if ( ! $this->db->field_exists('status', 'appointments'))
if ($this->db->field_exists('status', 'appointments'))
{
$this->dbforge->drop_column('appointments', 'status');
}