Don't add a separating comma if we've already printed the last column definition
This was done when we'd have a C-only-field. git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6649 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
99d6bf1529
commit
d862f39362
|
@ -99,7 +99,7 @@ sub printStructFields
|
|||
$$output .= "\t$field->{name} ";
|
||||
printStructFieldType($output, $field);
|
||||
$$output .= " UNIQUE" if grep(/unique/, @{$field->{"qualifiers"}});
|
||||
$$output .= ",\n" if @fields or @constraints;
|
||||
$$output .= ",\n" if (@fields and $fields[0]->{"type"} ne "C-only-field") or @constraints;
|
||||
}
|
||||
|
||||
$$output .= "\n" unless ($field->{"type"} and $field->{"type"} =~ /C-only-field/);
|
||||
|
|
|
@ -446,8 +446,7 @@ CREATE TABLE `WEAPON` (
|
|||
pWaterHitGraphic TEXT NOT NULL,
|
||||
|
||||
-- The trail used for in flight
|
||||
pTrailGraphic TEXT,
|
||||
|
||||
pTrailGraphic TEXT
|
||||
);
|
||||
|
||||
CREATE VIEW `WEAPONS` AS SELECT
|
||||
|
|
Loading…
Reference in New Issue