/apps/learn/migrations/00.00.02_letters.php

http://zoop.googlecode.com/ · PHP · 14 lines · 13 code · 1 blank · 0 comment · 0 complexity · ab3ce73246a57d1e271272290d6c2874 MD5 · raw file

  1. <?php
  2. class Migration_00_00_02 extends Migration
  3. {
  4. function up()
  5. {
  6. $sql = "create index word_letter_word_id_idx on word_letter (word_id)";
  7. SqlAlterSchema($sql);
  8. }
  9. function down()
  10. {
  11. SqlAlterSchema("drop index word_letter_word_id_idx");
  12. }
  13. }