mirror of
https://github.com/claudehohl/Stikked.git
synced 2025-04-26 04:51:08 -05:00
index db fields for faster lookup. SQL for updating existing table: "ALTER TABLE pastes ADD INDEX (pid), ADD INDEX (private), ADD INDEX (replyto), ADD INDEX (created)"
This commit is contained in:
parent
3c9cc51af3
commit
c04a55d46b
@ -120,6 +120,10 @@ class Main extends CI_Controller
|
|||||||
);
|
);
|
||||||
$this->dbforge->add_field($fields);
|
$this->dbforge->add_field($fields);
|
||||||
$this->dbforge->add_key('id', true);
|
$this->dbforge->add_key('id', true);
|
||||||
|
$this->dbforge->add_key('pid');
|
||||||
|
$this->dbforge->add_key('private');
|
||||||
|
$this->dbforge->add_key('replyto');
|
||||||
|
$this->dbforge->add_key('created');
|
||||||
$this->dbforge->create_table('pastes', true);
|
$this->dbforge->create_table('pastes', true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user