Core v2.3, N:M Relations
This commit is contained in:
7
cli.php
7
cli.php
@@ -94,13 +94,8 @@ function handleDatabase(array $argv) {
|
||||
$action = $argv[2] ?? "";
|
||||
|
||||
if ($action === "migrate") {
|
||||
$class = $argv[3] ?? null;
|
||||
if (!$class) {
|
||||
_exit("Usage: cli.php db migrate <class name>");
|
||||
}
|
||||
|
||||
$sql = connectSQL() or die();
|
||||
applyPatch($sql, $class);
|
||||
|
||||
} else if (in_array($action, ["export", "import", "shell"])) {
|
||||
|
||||
// database config
|
||||
|
||||
Reference in New Issue
Block a user