| Conditions | 1 |
| Paths | 1 |
| Total Lines | 27 |
| Code Lines | 20 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | <?php |
||
| 10 | public function up() |
||
| 11 | { |
||
| 12 | $this->dbforge->add_field(array( |
||
| 13 | 'captcha_id' => array( |
||
| 14 | 'type' => 'BIGINT', |
||
| 15 | 'constraint' => 13, |
||
| 16 | 'unsigned' => TRUE, |
||
| 17 | 'auto_increment' => TRUE |
||
| 18 | ), |
||
| 19 | 'captcha_time' => array( |
||
| 20 | 'type' => 'INT', |
||
| 21 | 'constraint' => 10, |
||
| 22 | 'unsigned' => TRUE, |
||
| 23 | ), |
||
| 24 | 'ip_address' => array( |
||
| 25 | 'type' => 'VARCHAR', |
||
| 26 | 'constraint' => '45', |
||
| 27 | ), |
||
| 28 | 'word' => array( |
||
| 29 | 'type' => 'VARCHAR', |
||
| 30 | 'constraint' => '20', |
||
| 31 | ), |
||
| 32 | )); |
||
| 33 | $this->dbforge->add_key('captcha_id', TRUE); |
||
| 34 | $this->dbforge->add_key('word'); |
||
| 35 | $this->dbforge->create_table('captcha'); |
||
| 36 | } |
||
| 37 | |||
| 44 |