💾 Add missing migrations
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
<?php
|
||||
$migrationList = [];
|
||||
$migrationList[] = 'v20170918_200000_add_attendance_image_out';
|
||||
$migrationList[] = 'v20170908_200000_payroll_group';
|
||||
$migrationList[] = 'v20170702_190500_add_attendance_image';
|
||||
$migrationList[] = 'v20170310_190401_add_timesheet_changes';
|
||||
|
||||
@@ -23,13 +23,6 @@ class v20170702_190500_add_attendance_image extends AbstractMigration{
|
||||
SQL;
|
||||
|
||||
|
||||
return $this->executeQuery($sql);
|
||||
|
||||
$sql = <<<'SQL'
|
||||
Alter table Attendance add column `image_out` longtext default null;
|
||||
SQL;
|
||||
|
||||
|
||||
return $this->executeQuery($sql);
|
||||
}
|
||||
|
||||
@@ -40,12 +33,6 @@ SQL;
|
||||
SQL;
|
||||
|
||||
return $this->executeQuery($sql);
|
||||
|
||||
$sql = <<<'SQL'
|
||||
Alter table Attendance drop column `image_out`;
|
||||
SQL;
|
||||
|
||||
return $this->executeQuery($sql);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
22
migrations/v20170918_200000_add_attendance_image_out.php
Normal file
22
migrations/v20170918_200000_add_attendance_image_out.php
Normal 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);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user