original_string: public function buildDatabase() {
  		if ($this->sql) {
  			if ($this->sql->query("
  				CREATE TABLE IF NOT EXISTS `{$this->table}` (
  					`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  					`key` varchar(255) NOT NULL,
  					`value` text,
  					`validate` text,
  					`timestamp` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  					`app` varchar(255) NOT NULL DEFAULT '',
  					PRIMARY KEY (`id`)
  				);
  			")) {
  				$this->initialized = true;
  				
  				/* Upgrade pre-v1.2 app_metadata tables to include independent IDs */
  				$this->sql->query("
  					ALTER TABLE `{$this->table}`
  						DROP PRIMARY KEY,
  						ADD `id` INT(11) UNSIGNED PRIMARY KEY AUTO_INCREMENT FIRST;
  				");
  			}
  		}
  		return $this->initialized;
  	}
code: public function buildDatabase() {
  		if ($this->sql) {
  			if ($this->sql->query("
  				CREATE TABLE IF NOT EXISTS `{$this->table}` (
  					`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  					`key` varchar(255) NOT NULL,
  					`value` text,
  					`validate` text,
  					`timestamp` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  					`app` varchar(255) NOT NULL DEFAULT '',
  					PRIMARY KEY (`id`)
  				);
  			")) {
  				$this->initialized = true;
  				
  				/* Upgrade pre-v1.2 app_metadata tables to include independent IDs */
  				$this->sql->query("
  					ALTER TABLE `{$this->table}`
  						DROP PRIMARY KEY,
  						ADD `id` INT(11) UNSIGNED PRIMARY KEY AUTO_INCREMENT FIRST;
  				");
  			}
  		}
  		return $this->initialized;
  	}
code_tokens: public function buildDatabase ( ) { if ( $ this -> sql ) { if ( $ this -> sql -> query ( "
  				CREATE TABLE IF NOT EXISTS `{$this->table}` (
  					`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  					`key` varchar(255) NOT NULL,
  					`value` text,
  					`validate` text,
  					`timestamp` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  					`app` varchar(255) NOT NULL DEFAULT '',
  					PRIMARY KEY (`id`)
  				);
  			" ) ) { $ this -> initialized = true ; /* Upgrade pre-v1.2 app_metadata tables to include independent IDs */ $ this -> sql -> query ( "
  					ALTER TABLE `{$this->table}`
  						DROP PRIMARY KEY,
  						ADD `id` INT(11) UNSIGNED PRIMARY KEY AUTO_INCREMENT FIRST;
  				" ) ; } } return $ this -> initialized ; }
docstring: Create the supporting database table
  
  @return boolean TRUE iff the database tables were created, FALSE if some tables already existed in database (and were, therefore, not created and not over-written)
  
  @throws AppMetadata_Exception INVALID_MYSQLI_OBJECT if no valid mysqli object is provided to access the database
  @throws AppMetadata_Exception MISSING_SCHEMA if the schema file cannot be found
  @throws AppMetadata_Exception CREATE_TABLE_FAIL or PREPARE_DATABASE_FAIL if the schema tables cannot be loaded
docstring_tokens: Create the supporting database table