diff --git a/application/migrations/20160407101300_decimal_score.php b/application/migrations/20160407101300_decimal_score.php new file mode 100644 index 0000000..3ee4a9c --- /dev/null +++ b/application/migrations/20160407101300_decimal_score.php @@ -0,0 +1,49 @@ +dbforge->modify_column('vragen', array( + 'score' => array( + 'type' => 'DECIMAL', + 'constraint' => '4,2', + 'unsigned' => TRUE, + ), + )); + + $this->dbforge->modify_column('resultaat', array( + 'score' => array( + 'type' => 'DECIMAL', + 'constraint' => '4,2', + 'unsigned' => TRUE, + ), + )); + + } + + public function down() + { + $this->dbforge->modify_column('vragen', array( + 'score' => array( + 'type' => 'INT', + 'constraint' => '6', + 'unsigned' => TRUE, + ), + )); + + $this->dbforge->modify_column('resultaat', array( + 'score' => array( + 'type' => 'INT', + 'constraint' => '6', + 'unsigned' => TRUE, + ), + )); + + } +} \ No newline at end of file