Creates the content table for a Super Table field.

@param string $tableName

@return void
435440
private function _createContentTable(string $tableName)
    {
        $migration = new CreateSuperTableContentTable([
            'tableName' => $tableName
        ]);

        ob_start();
        $migration->up();
        ob_end_clean();
    }
1220528
public function tableName($tableName = null)
    {
        if ($tableName === null)
        {
            return $this->_tableName;
        }
        $this->_tableName = $tableName;

        return $this;
    }
633389
protected function generateAddFieldSql( $tableName, $fieldName, ezcDbSchemaField $fieldDefinition )
    {
        if ( $fieldDefinition->notNull && $fieldDefinition->default == null ) 
        {
            $fieldDefinition->default = $this->generateDefault( $fieldDefinition->type, 0 );

        }
        $this->queries[] = "ALTER TABLE '$tableName' ADD " . $this->generateFieldSql( $fieldName, $fieldDefinition );
    }
1126484
protected function prepareShopTableViewNames($tableName)
    {
        $this->_aValidShopViews[] = 'oxv_' . $tableName;

        if (in_array($tableName, $this->getMultiLangTables())) {
            foreach ($this->getAllShopLanguages() as $sLang) {
                $this->_aValidShopViews[] = 'oxv_' . $tableName . '_' . $sLang;
            }
        }
    }
498330
protected function setTable(string $tableName, string $tableAlias = '')
    {
        $this->tableName = $tableName;
        $this->tableAlias = $tableAlias;
    }
429420
public function setTableName($tableName = "")
    {
        if (empty($tableName)) {
            throw new GdgCommonsInvalidArgumentException("Table name must not be null or empty");
        }
        
        if (!is_string($tableName)) {
            throw new GdgCommonsInvalidArgumentException("Table name must be string");
        }
        
        $this->_tableName = $tableName;
    }
979360
public function createTable(Table $table)
    {
        $createFlags = AbstractPlatform::CREATE_INDEXES|AbstractPlatform::CREATE_FOREIGNKEYS;
        $this->_execSql($this->_platform->getCreateTableSQL($table, $createFlags));
    }
664632
public function addStatus($tableName, $columnName = 'status')
    {
        $this->addColumn('{{%' . $tableName . '}}', $columnName,
            $this->smallInteger()->notNull()->defaultValue(1)->comment('Status of this item, 0: draft, not publised, 1: published '));
        $this->createIndex($tableName . '_' . $columnName . '_idx', '{{%' . $tableName . '}}', $columnName);
    }
272684
protected function createTable(Table $table): void
	{
		$table->addPrimaryKey('id')
			->int()
			->setAutoIncrement();
		$table->addForeignKey('pageId', PagesMapper::class);
		$table->addColumn('name')
			->text();
		$table->addColumn('quantity')
			->tinyint(2)
			->setDefault(null);
		$table->addColumn('position')
			->int(3);
		$table->addColumn('visible')
			->bool()
			->setDefault(1);
	}
370593
public function finish_table_import($tablename) {
        $table  = $this->schema->getTable($tablename);
        $fields = $table->getFields();
        foreach ($fields as $field) {
            if ($field->getSequence()) {
                $this->manager->reset_sequence($tablename);
                return;
            }
        }
        if ($this->transactionmode == 'pertable') {
            $this->transaction->allow_commit();
        }
    }
794635
private function initSQLs($listName)
    {
        $this->create = 'CREATE TABLE IF NOT EXISTS '.$listName.' (name VARCHAR(32) PRIMARY KEY, status INT)';
        $this->select = 'SELECT * FROM '.$listName;
        $this->insert = 'INSERT INTO '.$listName.' VALUES (?,?)';
        $this->update = 'UPDATE '.$listName.' SET status = ? WHERE name = ?';
        $this->delete = 'DELETE FROM '.$listName.' WHERE name = ?';
    }
1185795
public function createTable($tableName, $fields)
    {
        $query = SQLEncoder::encodeCreateTable($tableName, $fields);
        $this->con->query($query);
    }
462286
public function rewriteTable($tableName, $tableConfig = null)
    {
        if ($this->hasTable($tableName)) {
            $this->deleteTable($tableName);
        }

        return $this->create($tableName, $tableConfig);
    }
1358551
public function BuildClassHeader($tableName) {
        $this->OpenWriter();
        $this->AddPhpOpenTag();
        $this->AddNameSpace();
        $this->AddScriptNotAllowedLine();
        $this->AddFileDescription($tableName);
        $this->ClassStart();
    }
182136
public function createTable($tableName, $tableConfig = null)
    {
        if ($this->hasTable($tableName)) {
            throw new RuntimeException("Table with name {$tableName} is exist. Use rewriteTable()");
        }

        return $this->create($tableName, $tableConfig);
    }
579966
public function getTableCreateSql($tableName)
    {
        $sql = sprintf('SHOW CREATE TABLE %s', $this->ident($tableName));
        $result = $this->pdo->query($sql)->fetch();

        return $result['CREATE TABLE'];
    }
7050
public function addCode($tableName, $columnName = 'code')
    {
        $this->addColumn('{{%' . $tableName . '}}', $columnName,
            $this->string(32)->comment('Code for this item, used identifying when needed. Another criteria to replace ID because ID is auto-increment'));
        $this->createIndex($tableName . '_' . $columnName . '_idx', '{{%' . $tableName . '}}', $columnName);
    }