Browse Source

Decimal score

master
Rogier Neeleman 8 years ago
parent
commit
2889fadf27
  1. 49
      application/migrations/20160407101300_decimal_score.php

49
application/migrations/20160407101300_decimal_score.php

@ -0,0 +1,49 @@ @@ -0,0 +1,49 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/**
* Add regio table
*/
class Migration_Decimal_score extends CI_Migration
{
public function up()
{
$this->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,
),
));
}
}
Loading…
Cancel
Save