|
@@ 72-74 (lines=3) @@
|
| 69 |
|
$warnings[] = 'Database schema warning: *dbprefix* should not appear in name of column ' . $column->name . ' on table ' . $table->name; |
| 70 |
|
} |
| 71 |
|
|
| 72 |
|
if (strlen($column->name) > 30) { |
| 73 |
|
$errors[] = 'Database schema error: Name of column ' . $column->name . ' on table ' . $table->name . ' is too long (' . strlen($tableName) . '), max. 30 characters allowed'; |
| 74 |
|
} |
| 75 |
|
|
| 76 |
|
if ($column->autoincrement) { |
| 77 |
|
if ($hasAutoIncrement) { |
|
@@ 97-99 (lines=3) @@
|
| 94 |
|
} |
| 95 |
|
|
| 96 |
|
$indexName = $hasPrefix === 0 ? substr($index->name, strlen('*dbprefix*')) : $index->name; |
| 97 |
|
if (strlen($indexName) > 27) { |
| 98 |
|
$errors[] = 'Database schema error: Name of index ' . $index->name . ' on table ' . $table->name . ' is too long (' . strlen($tableName) . '), max. 27 characters + *dbprefix* allowed'; |
| 99 |
|
} |
| 100 |
|
} |
| 101 |
|
} |
| 102 |
|
|