mirror of
https://github.com/friendica/friendica
synced 2024-11-19 00:23:47 +00:00
Issue 8635 - Handle weird default values
This handles an issue that occured in #8635 (But will not fix the issue behind this)
This commit is contained in:
parent
7b8178e046
commit
b8cf415f0d
1 changed files with 2 additions and 2 deletions
|
@ -732,8 +732,8 @@ class DBStructure
|
|||
$fielddata[$field['COLUMN_NAME']]['not null'] = true;
|
||||
}
|
||||
|
||||
if (isset($field['COLUMN_DEFAULT'])) {
|
||||
$fielddata[$field['COLUMN_NAME']]['default'] = $field['COLUMN_DEFAULT'];
|
||||
if (isset($field['COLUMN_DEFAULT']) && ($field['COLUMN_DEFAULT'] != 'NULL')) {
|
||||
$fielddata[$field['COLUMN_NAME']]['default'] = trim($field['COLUMN_DEFAULT'], "'");
|
||||
}
|
||||
|
||||
if (!empty($field['EXTRA'])) {
|
||||
|
|
Loading…
Reference in a new issue