Conditions | 1 |
Paths | 1 |
Total Lines | 23 |
Code Lines | 17 |
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 | 'word' => array( |
||
25 | 'type' => 'VARCHAR', |
||
26 | 'constraint' => '20', |
||
27 | ), |
||
28 | )); |
||
29 | $this->dbforge->add_key('captcha_id', TRUE); |
||
30 | $this->dbforge->add_key('word'); |
||
31 | $this->dbforge->create_table('captcha'); |
||
32 | } |
||
33 | |||
40 |