mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-22 06:18:41 +00:00
Fix whitespace
This commit is contained in:
parent
2f38afaef7
commit
10f0d1f692
|
|
@ -86,8 +86,8 @@ class Builder extends QueryBuilder
|
|||
|
||||
// todo: consider to work with flags instead of all these booleans
|
||||
public function field(
|
||||
string $name, string $type, $default = null,
|
||||
bool $isNullable = true, bool $isPrimary = false, bool $autoincrement = false,
|
||||
string $name, string $type, $default = null,
|
||||
bool $isNullable = true, bool $isPrimary = false, bool $autoincrement = false,
|
||||
string $foreignTable = null, string $foreignKey = null
|
||||
) : self {
|
||||
$this->createFields[$name] = [
|
||||
|
|
|
|||
|
|
@ -115,8 +115,8 @@ class MysqlGrammar extends Grammar
|
|||
if (isset($field['foreignTable'], $field['foreignKey'])
|
||||
&& !empty($field['foreignTable']) && !empty($field['foreignKey'])
|
||||
) {
|
||||
$keys .= ' FOREIGN KEY (' . $this->expressionizeTableColumn([$name], '') . ') REFERENCES '
|
||||
. $this->expressionizeTable([$field['foreignTable']], $query->getPrefix())
|
||||
$keys .= ' FOREIGN KEY (' . $this->expressionizeTableColumn([$name], '') . ') REFERENCES '
|
||||
. $this->expressionizeTable([$field['foreignTable']], $query->getPrefix())
|
||||
. ' (' . $this->expressionizeTableColumn([$field['foreignKey']], '') . '),';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -146,7 +146,7 @@ class InstallerAbstract
|
|||
$def['foreignTable'] ?? null, $def['foreignKey'] ?? null
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
$builder->execute();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ class UninstallerAbstract
|
|||
foreach ($definitions as $definition) {
|
||||
$builder->dropTable($definition['table'] ?? '');
|
||||
}
|
||||
|
||||
|
||||
$builder->execute();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user