public function importScheme($table, array $scheme)
    {
        if ($this->tableExists($table)) {
            throw new RuntimeException('Table already exists');
        }

        try {
            $this->import($scheme);
        } catch (Exception $ex) {
            $this->deleteTable($table);
            throw new RuntimeException("Failed to import database table $table: " . $ex->getMessage());
        }
    }
public function importScheme($table, array $scheme)
    {
        if ($this->tableExists($table)) {
            throw new RuntimeException('Table already exists');
        }

        try {
            $this->import($scheme);
        } catch (Exception $ex) {
            $this->deleteTable($table);
            throw new RuntimeException("Failed to import database table $table: " . $ex->getMessage());
        }
    }
public function importScheme ( $ table , array $ scheme ) { if ( $ this -> tableExists ( $ table ) ) { throw new RuntimeException ( 'Table already exists' ) ; } try { $ this -> import ( $ scheme ) ; } catch ( Exception $ ex ) { $ this -> deleteTable ( $ table ) ; throw new RuntimeException ( "Failed to import database table $table: " . $ ex -> getMessage ( ) ) ; } }
Install a database table using the scheme
@param string $table
@param array $scheme
@throws RuntimeException
Install a database table using the scheme