public
Description: Wilfire CMS - Plugin for the PHP-Wax Framework
Homepage: http://wildfirecms.com/
Clone URL: git://github.com/phpwax/wildfire.git
wildfire / migrate / SectionTableMigrate.php
100755 19 lines (15 sloc) 0.455 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
 
class SectionTableMigrate extends WXMigrate {
  
  public function up() {
    $this->create_column("title", "string");
    $this->create_column("parent_id", "integer");
    $this->create_column("introduction", "text");
    $this->create_column("order", "integer", "2", false, "0");
    $this->create_column("url", "string");
    $this->create_table("cms_section");
  }
  
  public function down() {
    $this->drop_table("cms_section");
  }
  
}
?>