mirror of
https://github.com/claudehohl/Stikked.git
synced 2025-04-25 20:41:20 -05:00
blocked_ips
This commit is contained in:
parent
ae00c1a480
commit
b415f65249
@ -135,6 +135,21 @@ class Main extends CI_Controller
|
||||
$this->dbforge->add_key('session_id');
|
||||
$this->dbforge->create_table('pastes', true);
|
||||
}
|
||||
|
||||
if (!$this->db->table_exists('blocked_ips'))
|
||||
{
|
||||
$this->load->dbforge();
|
||||
$fields = array(
|
||||
'ip_address' => array(
|
||||
'type' => 'VARCHAR',
|
||||
'constraint' => 16,
|
||||
'default' => 0,
|
||||
) ,
|
||||
);
|
||||
$this->dbforge->add_field($fields);
|
||||
$this->dbforge->add_key('ip_address', true);
|
||||
$this->dbforge->create_table('blocked_ips', true);
|
||||
}
|
||||
|
||||
//check if field session_id exists
|
||||
//todo
|
||||
|
Loading…
x
Reference in New Issue
Block a user