Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | public function safeUp() |
||
15 | { |
||
16 | // Create the craft_youtube_hashes table |
||
17 | craft()->db->createCommand()->createTable('youtube_hashes', array( |
||
18 | 'youtubeId' => array('required' => true), |
||
19 | 'hash' => array('required' => true), |
||
20 | ), null, true); |
||
21 | |||
22 | // Add indexes to craft_youtube_hashes |
||
23 | craft()->db->createCommand()->createIndex('youtube_hashes', 'hash', true); |
||
24 | |||
25 | return true; |
||
26 | } |
||
27 | } |
||
28 |