Gentics Portal.Node PHP API
 All Classes Namespaces Functions Variables Pages
m131112_144904_shoppingcart_order_indeces.php
1 <?php
2 class m131112_144904_shoppingcart_order_indeces extends CDbMigration
3 {
4  public function up(){
5  $this->createIndex('idxOrdered', '{{order}}', 'ordered');
6  $this->createIndex('idxUserId' , '{{order}}', 'user_id');
7  }
8  public function down(){
9  $this->dropIndex('idxOrdered', '{{order}}');
10  $this->dropIndex('idxUserId' , '{{order}}');
11  }
12 }