Rogier Neeleman
9 years ago
3 changed files with 30 additions and 1 deletions
@ -0,0 +1,28 @@
@@ -0,0 +1,28 @@
|
||||
<?php |
||||
defined('BASEPATH') OR exit('No direct script access allowed'); |
||||
|
||||
/** |
||||
* Add regio table |
||||
*/ |
||||
class Migration_Add_spelgebiedweight extends CI_Migration |
||||
{ |
||||
|
||||
public function up() |
||||
{ |
||||
$this->dbforge->add_column('spelgebied', array( |
||||
'gewicht' => array( |
||||
'type' => 'DECIMAL', |
||||
'unsigned' => TRUE, |
||||
'constraint' => '3,2', |
||||
'after' => 'jaar', |
||||
'default' => '1.00', |
||||
), |
||||
)); |
||||
|
||||
} |
||||
|
||||
public function down() |
||||
{ |
||||
$this->dbforge->drop_column('spelgebied', 'gewicht'); |
||||
} |
||||
} |
Loading…
Reference in new issue