From d4edb54c4ca0973cf42d6041555a9eb832d55044 Mon Sep 17 00:00:00 2001 From: bison Date: Fri, 19 Aug 2016 15:29:15 +0200 Subject: [PATCH] Added changes in migration scripts, new column zugangscode_timestamp for table tbl_person --- application/migrations/014_person.php | 38 +++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 application/migrations/014_person.php diff --git a/application/migrations/014_person.php b/application/migrations/014_person.php new file mode 100644 index 000000000..ada0e820e --- /dev/null +++ b/application/migrations/014_person.php @@ -0,0 +1,38 @@ +startUP(); + + // Add zugangscode_timestamp to public.tbl_person + $columns = array( + "zugangscode_timestamp" => array( + "type" => "timestamp", + "null" => true + ) + ); + $this->addColumn("public", "tbl_person", $columns); + + $this->endUP(); + } + + public function down() + { + $this->startDown(); + + $this->dropColumn("public", "tbl_person", "zugangscode_timestamp"); + + $this->endDown(); + } +} \ No newline at end of file