Skip to content

Commit 8ce4196

Browse files
committed
Update ezSchema.php
1 parent 9aea8c6 commit 8ce4196

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

shared/ezSchema.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,10 @@ public static function vendor()
187187
* Creates an database column,
188188
* - column, datatype, value/options with the given arguments.
189189
*
190+
* // datatype are global CONSTANTS and can be written out like:
191+
* - VARCHAR, 32, notNULL, PRIMARY, AUTO, ....
192+
* // AUTO constant will replaced with the proper auto sequence for the SQL driver
193+
*
190194
* @param string $column|CONSTRAINT, - column name/CONSTRAINT usage for PRIMARY|FOREIGN KEY
191195
* @param string $type|$constraintName, - data type for column/primary|foreign constraint name
192196
* @param mixed $size|...$primaryForeignKeys,
@@ -213,7 +217,7 @@ public static function column(string $column = null, string $type = null, ...$ar
213217
} elseif (($column == \ADD) || ($column == \DROP) || ($column == \CHANGER)) {
214218
if ($column != \DROP) {
215219
// check for modify placeholder and replace with vendors
216-
$column = \str_replace(\CHANGE, self::CHANGES[$vendor], $column);
220+
$column = \str_replace(\CHANGER, self::CHANGES[$vendor], $column);
217221
$column = $column.' '.$type;
218222
$type2 = \array_shift($args);
219223
$data = self::datatype($type2, ...$args);

0 commit comments

Comments
 (0)