IDEMPIERE-2368 Synchronize column not create table if virtual column is first / thanks to Nikita Polkovnikov
This commit is contained in:
parent
47d6bd135f
commit
5d87eb5c55
|
@ -540,14 +540,17 @@ public class MTable extends X_AD_Table
|
|||
// boolean hasParents = false;
|
||||
StringBuffer constraints = new StringBuffer();
|
||||
getColumns(true);
|
||||
boolean columnAdded = false;
|
||||
for (int i = 0; i < m_columns.length; i++)
|
||||
{
|
||||
MColumn column = m_columns[i];
|
||||
String colSQL = column.getSQLDDL();
|
||||
if ( colSQL != null )
|
||||
{
|
||||
if (i > 0)
|
||||
if (columnAdded)
|
||||
sb.append(", ");
|
||||
else
|
||||
columnAdded = true;
|
||||
sb.append(column.getSQLDDL());
|
||||
}
|
||||
else // virtual column
|
||||
|
|
Loading…
Reference in New Issue