From e506c1d7a10432db27db2c5c13b7cd5b2d9d816b Mon Sep 17 00:00:00 2001 From: gamonoid Date: Wed, 20 Sep 2017 05:34:51 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=BE=20=20Add=20missing=20migrations?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- migrations/list.php | 1 + .../v20170702_190500_add_attendance_image.php | 13 ----------- ...170918_200000_add_attendance_image_out.php | 22 +++++++++++++++++++ 3 files changed, 23 insertions(+), 13 deletions(-) create mode 100644 migrations/v20170918_200000_add_attendance_image_out.php diff --git a/migrations/list.php b/migrations/list.php index a6784ab9..3cea4f46 100644 --- a/migrations/list.php +++ b/migrations/list.php @@ -1,5 +1,6 @@ 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); } } diff --git a/migrations/v20170918_200000_add_attendance_image_out.php b/migrations/v20170918_200000_add_attendance_image_out.php new file mode 100644 index 00000000..088c7a3b --- /dev/null +++ b/migrations/v20170918_200000_add_attendance_image_out.php @@ -0,0 +1,22 @@ +executeQuery($sql); + } + + public function down(){ + $sql = <<<'SQL' + Alter table Attendance drop column `image_out`; +SQL; + + return $this->executeQuery($sql); + } + +}