Core v2.3, N:M Relations

This commit is contained in:
2022-11-20 17:13:53 +01:00
parent b5b8f9b856
commit 303a5b69b5
41 changed files with 962 additions and 1047 deletions

View File

@@ -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