mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-11 14:38:39 +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
|
// todo: consider to work with flags instead of all these booleans
|
||||||
public function field(
|
public function field(
|
||||||
string $name, string $type, $default = null,
|
string $name, string $type, $default = null,
|
||||||
bool $isNullable = true, bool $isPrimary = false, bool $autoincrement = false,
|
bool $isNullable = true, bool $isPrimary = false, bool $autoincrement = false,
|
||||||
string $foreignTable = null, string $foreignKey = null
|
string $foreignTable = null, string $foreignKey = null
|
||||||
) : self {
|
) : self {
|
||||||
$this->createFields[$name] = [
|
$this->createFields[$name] = [
|
||||||
|
|
|
||||||
|
|
@ -115,8 +115,8 @@ class MysqlGrammar extends Grammar
|
||||||
if (isset($field['foreignTable'], $field['foreignKey'])
|
if (isset($field['foreignTable'], $field['foreignKey'])
|
||||||
&& !empty($field['foreignTable']) && !empty($field['foreignKey'])
|
&& !empty($field['foreignTable']) && !empty($field['foreignKey'])
|
||||||
) {
|
) {
|
||||||
$keys .= ' FOREIGN KEY (' . $this->expressionizeTableColumn([$name], '') . ') REFERENCES '
|
$keys .= ' FOREIGN KEY (' . $this->expressionizeTableColumn([$name], '') . ') REFERENCES '
|
||||||
. $this->expressionizeTable([$field['foreignTable']], $query->getPrefix())
|
. $this->expressionizeTable([$field['foreignTable']], $query->getPrefix())
|
||||||
. ' (' . $this->expressionizeTableColumn([$field['foreignKey']], '') . '),';
|
. ' (' . $this->expressionizeTableColumn([$field['foreignKey']], '') . '),';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -146,7 +146,7 @@ class InstallerAbstract
|
||||||
$def['foreignTable'] ?? null, $def['foreignKey'] ?? null
|
$def['foreignTable'] ?? null, $def['foreignKey'] ?? null
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
$builder->execute();
|
$builder->execute();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -74,7 +74,7 @@ class UninstallerAbstract
|
||||||
foreach ($definitions as $definition) {
|
foreach ($definitions as $definition) {
|
||||||
$builder->dropTable($definition['table'] ?? '');
|
$builder->dropTable($definition['table'] ?? '');
|
||||||
}
|
}
|
||||||
|
|
||||||
$builder->execute();
|
$builder->execute();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user