Added migration file to create a logbook_id

pull/355/head
Peter Goodhall 2019-09-22 20:57:07 +01:00
rodzic 33f967d664
commit 3449ac627d
1 zmienionych plików z 20 dodań i 0 usunięć

Wyświetl plik

@ -0,0 +1,20 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Migration_add_column_logbookid extends CI_Migration {
public function up()
{
$fields = array(
'logbook_id int(11) DEFAULT NULL',
);
$this->dbforge->add_column($this->config->item('table_name'), $fields);
}
public function down()
{
echo "Not possible, sorry.";
}
}