mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
get rid of signed parameter when upgrading columns to varchar or text
This commit is contained in:
parent
75c64d922f
commit
4e56c82dab
1 changed files with 2 additions and 0 deletions
|
@ -85,12 +85,14 @@ function table_column($table, $oldfield, $field, $type="integer", $size="10",
|
||||||
switch (strtolower($type)) {
|
switch (strtolower($type)) {
|
||||||
case "text":
|
case "text":
|
||||||
$type = "TEXT";
|
$type = "TEXT";
|
||||||
|
$signed = "";
|
||||||
break;
|
break;
|
||||||
case "integer":
|
case "integer":
|
||||||
$type = "INTEGER($size)";
|
$type = "INTEGER($size)";
|
||||||
break;
|
break;
|
||||||
case "varchar":
|
case "varchar":
|
||||||
$type = "VARCHAR($size)";
|
$type = "VARCHAR($size)";
|
||||||
|
$signed = "";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue