phpwax / wildfire

Wilfire CMS - Plugin for the PHP-Wax Framework

sheldon (author)
Fri Jun 19 06:24:28 -0700 2009
commit  0611d1ca6b68361ca81064ce6d29817ce3a2cc27
tree    d7778476354b778dac40c21fd728ca3fc5ae4728
parent  dfcb58da253cbe0eaae3cec203cabce2ceab21a9
wildfire / migrate / CommentsTableMigrate.php
100644 27 lines (23 sloc) 0.848 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
 
class CommentsTableMigrate extends WXMigrate {
  
  public function up() {
    $this->create_column("attached_id", "integer");
    $this->create_column("attached_table", "string");
    $this->create_column("comment", "text");
    $this->create_column("author_name", "string");
    $this->create_column("author_email", "string");
    $this->create_column("author_website", "string");
    $this->create_column("author_ip", "string");
    $this->create_column("status", "integer");
    $this->create_column("type", "string");
    $this->create_column("karma", "integer");
    $this->create_column("author_id", "integer");
    $this->create_column("author_table", "integer");
    $this->create_column("time", "datetime");
    $this->create_table("cms_comment");
  }
  
  public function down() {
    $this->drop_table("cms_comment");
  }
  
}
?>