first commit
This commit is contained in:
Executable
+33
@@ -0,0 +1,33 @@
|
||||
<?php defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
/*Powered By: Manaknightdigital Inc. https://manaknightdigital.com/ Year: 2021*/
|
||||
/**
|
||||
* memberOperation Migration
|
||||
*
|
||||
* @copyright 2019 Manaknightdigital Inc.
|
||||
* @link https://manaknightdigital.com
|
||||
* @license Proprietary Software licensing
|
||||
* @author Ryan Wong
|
||||
*/
|
||||
class Migration_member_operation extends CI_Migration {
|
||||
|
||||
public function up()
|
||||
{
|
||||
$this->dbforge->add_field([ 'id' => array('type' => 'INT','constraint' => 11,'unsigned' => TRUE,'auto_increment' => TRUE),
|
||||
'user_id' => array('type' => 'INT', 'constraint' => 11, 'null' => TRUE),
|
||||
'action' => array('type' => 'VARCHAR', 'constraint' => '50'),
|
||||
'detail' => array('type' => 'TEXT', 'null' => TRUE),
|
||||
'last_ip' => array('type' => 'VARCHAR', 'constraint' => '25'),
|
||||
'user_agent' => array('type' => 'VARCHAR', 'constraint' => '100'),
|
||||
'created_at' => array('type' => 'DATE', 'null' => TRUE),
|
||||
'updated_at' => array('type' => 'DATETIME', 'null' => TRUE)]);
|
||||
$this->dbforge->add_key('id', TRUE);
|
||||
$this->dbforge->create_table('member_operation');
|
||||
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
$this->dbforge->drop_table('member_operation');
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user