mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-12-27 00:52:56 +03:00
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()
|
public function down()
|
||||||
{
|
{
|
||||||
if ( ! $this->db->field_exists('color', 'services'))
|
if ($this->db->field_exists('color', 'services'))
|
||||||
{
|
{
|
||||||
$this->dbforge->drop_column('services', 'color');
|
$this->dbforge->drop_column('services', 'color');
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,7 +37,7 @@ class Migration_Add_color_column_to_appointments_table extends EA_Migration {
|
||||||
*/
|
*/
|
||||||
public function down()
|
public function down()
|
||||||
{
|
{
|
||||||
if ( ! $this->db->field_exists('color', 'appointments'))
|
if ($this->db->field_exists('color', 'appointments'))
|
||||||
{
|
{
|
||||||
$this->dbforge->drop_column('appointments', 'color');
|
$this->dbforge->drop_column('appointments', 'color');
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,7 +37,7 @@ class Migration_Add_status_column_to_appointments_table extends EA_Migration {
|
||||||
*/
|
*/
|
||||||
public function down()
|
public function down()
|
||||||
{
|
{
|
||||||
if ( ! $this->db->field_exists('status', 'appointments'))
|
if ($this->db->field_exists('status', 'appointments'))
|
||||||
{
|
{
|
||||||
$this->dbforge->drop_column('appointments', 'status');
|
$this->dbforge->drop_column('appointments', 'status');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue