- Added a new Field Mapper to SQLs Adapters.

- Defined missing MySQL fields attributes
- WIP on lean-console's migration methods
This commit is contained in:
Dave Mc Nicoll committed 2024-10-21 18:12:24 +00:00
1 parent 5f4f23a8e4
commit 411992c7a8
17 files changed
+214 -8

No files matched your search

+9 -1
View File
@@ -46,6 +46,9 @@ class SqlFieldMapper
break;
case "array":
$this->type = "JSON";
break;
case "string":
if ($length && $length <= 255) {
$this->type = "VARCHAR";
@@ -75,13 +78,18 @@ class SqlFieldMapper
default:
$this->type = strtoupper($type);
break;
}
$this->postProcess();
}
public function render() : string
{
return $this->type . ( isset($this->length) ? "($this->length)" : "" );
}
public function postProcess() : void
{
}
}