public function createTables()
    {
        $db = $this->getDb();
        $prefixTables = $this->getTablePrefix();

        $tablesAlreadyInstalled = $this->getTablesInstalled();
        $tablesToCreate = $this->getTablesCreateSql();
        unset($tablesToCreate['archive_blob']);
        unset($tablesToCreate['archive_numeric']);

        foreach ($tablesToCreate as $tableName => $tableSql) {
            $tableName = $prefixTables . $tableName;
            if (!in_array($tableName, $tablesAlreadyInstalled)) {
                $db->query($tableSql);
            }
        }
    }
public function createTables()
    {
        $db = $this->getDb();
        $prefixTables = $this->getTablePrefix();

        $tablesAlreadyInstalled = $this->getTablesInstalled();
        $tablesToCreate = $this->getTablesCreateSql();
        unset($tablesToCreate['archive_blob']);
        unset($tablesToCreate['archive_numeric']);

        foreach ($tablesToCreate as $tableName => $tableSql) {
            $tableName = $prefixTables . $tableName;
            if (!in_array($tableName, $tablesAlreadyInstalled)) {
                $db->query($tableSql);
            }
        }
    }
public function createTables ( ) { $ db = $ this -> getDb ( ) ; $ prefixTables = $ this -> getTablePrefix ( ) ; $ tablesAlreadyInstalled = $ this -> getTablesInstalled ( ) ; $ tablesToCreate = $ this -> getTablesCreateSql ( ) ; unset ( $ tablesToCreate [ 'archive_blob' ] ) ; unset ( $ tablesToCreate [ 'archive_numeric' ] ) ; foreach ( $ tablesToCreate as $ tableName => $ tableSql ) { $ tableName = $ prefixTables . $ tableName ; if ( ! in_array ( $ tableName , $ tablesAlreadyInstalled ) ) { $ db -> query ( $ tableSql ) ; } } }
Create all tables
Create all tables