💾 Add missing migrations

This commit is contained in:
gamonoid
2017-09-20 05:34:51 +02:00
parent 69d40ec2da
commit e506c1d7a1
3 changed files with 23 additions and 13 deletions

View File

@@ -1,5 +1,6 @@
<?php <?php
$migrationList = []; $migrationList = [];
$migrationList[] = 'v20170918_200000_add_attendance_image_out';
$migrationList[] = 'v20170908_200000_payroll_group'; $migrationList[] = 'v20170908_200000_payroll_group';
$migrationList[] = 'v20170702_190500_add_attendance_image'; $migrationList[] = 'v20170702_190500_add_attendance_image';
$migrationList[] = 'v20170310_190401_add_timesheet_changes'; $migrationList[] = 'v20170310_190401_add_timesheet_changes';

View File

@@ -23,13 +23,6 @@ class v20170702_190500_add_attendance_image extends AbstractMigration{
SQL; SQL;
return $this->executeQuery($sql);
$sql = <<<'SQL'
Alter table Attendance add column `image_out` longtext default null;
SQL;
return $this->executeQuery($sql); return $this->executeQuery($sql);
} }
@@ -40,12 +33,6 @@ SQL;
SQL; SQL;
return $this->executeQuery($sql); return $this->executeQuery($sql);
$sql = <<<'SQL'
Alter table Attendance drop column `image_out`;
SQL;
return $this->executeQuery($sql);
} }
} }

View File

@@ -0,0 +1,22 @@
<?php
namespace Classes\Migration;
class v20170918_200000_add_attendance_image_out extends AbstractMigration{
public function up(){
$sql = <<<'SQL'
Alter table Attendance add column `image_out` longtext default null;
SQL;
return $this->executeQuery($sql);
}
public function down(){
$sql = <<<'SQL'
Alter table Attendance drop column `image_out`;
SQL;
return $this->executeQuery($sql);
}
}