src/Structure/Table.php
public function check(): bool
	{
		$isNew = false;
		$this->connection->query('SET foreign_key_checks = 0');
		if (!$this->exists) {
			$this->create();
			$isNew = true;
			if ($this->defaultDataFile !== null) {
				FileImporter::executeFile($this->connection, $this->defaultDataFile);
			}

			foreach ($this->relationTables as $table) {
				$table->check();
			}
		} else {
			$this->changeColumns();
			$this->modifyColumnsAndKeys();
			$this->modifyTable();
		}
		$this->connection->query('SET foreign_key_checks = 1');
		return $isNew;
	}
public function check(): bool
	{
		$isNew = false;
		$this->connection->query('SET foreign_key_checks = 0');
		if (!$this->exists) {
			$this->create();
			$isNew = true;
			if ($this->defaultDataFile !== null) {
				FileImporter::executeFile($this->connection, $this->defaultDataFile);
			}

			foreach ($this->relationTables as $table) {
				$table->check();
			}
		} else {
			$this->changeColumns();
			$this->modifyColumnsAndKeys();
			$this->modifyTable();
		}
		$this->connection->query('SET foreign_key_checks = 1');
		return $isNew;
	}
Proveri zda tabulka existuje a podle toho ji bud vytvori nebo upravi (pokud je treba)
@return bool pokud je vytvorena vrati true
@throws QueryException