Pastoid

The page you are looking at now is at this URL: http://pastoid.com/b0k

This paste was last updated on February 27, 2010 at 12:25 am.

sqliteraw

CREATE TABLE {rateit_log} (
  id INT NOT NULL AUTOINCREMENT PRIMARY KEY,
  post_id INT NOT NULL,
  rating TINYINT NOT NULL,
  timestamp DATETIME NOT NULL,
  ip INT( 10 ) NOT NULL,
);
 
CREATE UNIQUE INDEX IF NOT EXISTS post_id_ip ON {rateit_log}( post_id, ip );

Toggle wordwrap

mysqlraw

CREATE TABLE {rateit_log} (
  id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
  post_id INT NOT NULL,
  rating TINYINT NOT NULL,
  timestamp DATETIME NOT NULL,
  ip INT( 10 ) NOT NULL,
  INDEX ( post_id , ip )
);
 
 

Toggle wordwrap

Pasted Coderaw

       private function install_db()
        {
                DB::register_table( 'rateit_log' );
 
                return DB::dbdelta( $this->get_db_schema() );
        }

Toggle wordwrap

Referring DomainHits
Unknown Referer 201
pastoid.com 4
Is this paste spam?
<Hide