forked from mirrors/easyappointments
Fix condition on new field migration files
This commit is contained in:
parent
c1c588be22
commit
80e52ca36d
3 changed files with 3 additions and 3 deletions
|
@ -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');
|
||||
}
|
||||
|
|
|
@ -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');
|
||||
}
|
||||
|
|
|
@ -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');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue