mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-17 02:41:02 +01:00
"marking auto columns automatic as primary key and not null"
This commit is contained in:
parent
4859fb6a8e
commit
510d1e786e
@ -430,6 +430,11 @@
|
|||||||
for (reset($content),$n = 1; isset($content["Row$n"]); ++$n)
|
for (reset($content),$n = 1; isset($content["Row$n"]); ++$n)
|
||||||
{
|
{
|
||||||
$col = $content["Row$n"];
|
$col = $content["Row$n"];
|
||||||
|
|
||||||
|
if ($col['type'] == 'auto') // auto columns are the primary key and not null!
|
||||||
|
{
|
||||||
|
$col['pk'] = $col['notnull'] = true; // set it, in case the user forgot
|
||||||
|
}
|
||||||
|
|
||||||
while ((list($old_name,$old_col) = @each($old_cols)) &&
|
while ((list($old_name,$old_col) = @each($old_cols)) &&
|
||||||
$this->changes[$posted_table][$old_name] == '**deleted**') ;
|
$this->changes[$posted_table][$old_name] == '**deleted**') ;
|
||||||
|
Loading…
Reference in New Issue
Block a user