framework/base/CDbStatePersister.php
protected function createTable()
	{
		try
		{
			$command=$this->db->createCommand();
			$command->createTable($this->stateTableName,array(
				$this->keyField=>'string NOT NULL',
				$this->valueField=>'text NOT NULL',
				'PRIMARY KEY ('.$this->db->quoteColumnName($this->keyField).')'
			));
		}
		catch (CDbException $e)
		{
			throw new CException(Yii::t('yii','Can\'t create state persister table. Check CREATE privilege for \'{db}\' connection user or create table manually with SQL: {sql}.',array('{db}'=>$this->dbComponent,'{sql}'=>$command->text ) ) );
		}
	}
protected function createTable()
	{
		try
		{
			$command=$this->db->createCommand();
			$command->createTable($this->stateTableName,array(
				$this->keyField=>'string NOT NULL',
				$this->valueField=>'text NOT NULL',
				'PRIMARY KEY ('.$this->db->quoteColumnName($this->keyField).')'
			));
		}
		catch (CDbException $e)
		{
			throw new CException(Yii::t('yii','Can\'t create state persister table. Check CREATE privilege for \'{db}\' connection user or create table manually with SQL: {sql}.',array('{db}'=>$this->dbComponent,'{sql}'=>$command->text ) ) );
		}
	}
protected function createTable ( ) { try { $ command = $ this -> db -> createCommand ( ) ; $ command -> createTable ( $ this -> stateTableName , array ( $ this -> keyField => 'string NOT NULL' , $ this -> valueField => 'text NOT NULL' , 'PRIMARY KEY (' . $ this -> db -> quoteColumnName ( $ this -> keyField ) . ')' ) ) ; } catch ( CDbException $ e ) { throw new CException ( Yii :: t ( 'yii' , 'Can\'t create state persister table. Check CREATE privilege for \'{db}\' connection user or create table manually with SQL: {sql}.' , array ( '{db}' => $ this -> dbComponent , '{sql}' => $ command -> text ) ) ) ; } }
Creates state persister table
@throws CException
Creates state persister table