"marking auto columns automatic as primary key and not null"

This commit is contained in:
Ralf Becker 2007-11-29 06:50:25 +00:00
parent 4859fb6a8e
commit 510d1e786e

View File

@ -431,6 +431,11 @@
{
$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)) &&
$this->changes[$posted_table][$old_name] == '**deleted**') ;