mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
ALF-11668: Add position identifiers (same as seq elements in current schema dump tool)
As for current schemadump tool, table columns and primary key column names have order associated with them. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32296 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -230,6 +230,9 @@ public class ExportDb
|
||||
|
||||
String nullableString = columns.getString("IS_NULLABLE");
|
||||
column.setNullable(parseBoolean(nullableString));
|
||||
|
||||
column.setOrder(columns.getInt("ORDINAL_POSITION"));
|
||||
|
||||
column.setParent(table);
|
||||
table.getColumns().add(column);
|
||||
}
|
||||
@@ -250,6 +253,9 @@ public class ExportDb
|
||||
}
|
||||
String columnName = primarykeycols.getString("COLUMN_NAME");
|
||||
pk.getColumnNames().add(columnName);
|
||||
|
||||
int columnOrder = primarykeycols.getInt("KEY_SEQ");
|
||||
pk.getColumnOrders().add(columnOrder);
|
||||
}
|
||||
primarykeycols.close();
|
||||
|
||||
|
Reference in New Issue
Block a user