summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2007-08-24 10:25:19 (EDT)
committerEike Stepper2007-08-24 10:25:19 (EDT)
commit116796aee5534b04b1c6f1c7c1da25415b790583 (patch)
treeed26f8c22c9550f919e9c2e03c5eb8aece80a5ed
parentcb7f6f20d7d4891d5e467d313bc57d6912819032 (diff)
downloadcdo-116796aee5534b04b1c6f1c7c1da25415b790583.zip
cdo-116796aee5534b04b1c6f1c7c1da25415b790583.tar.gz
cdo-116796aee5534b04b1c6f1c7c1da25415b790583.tar.bz2
*** empty log message ***
-rw-r--r--plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/Mapping.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/Mapping.java b/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/Mapping.java
index c6e80c6..8716541 100644
--- a/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/Mapping.java
+++ b/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/Mapping.java
@@ -130,7 +130,9 @@ public abstract class Mapping implements IMapping
try
{
- return mappingStrategy.getStore().getSchema().addTable(tableName);
+ IDBTable table = mappingStrategy.getStore().getSchema().addTable(tableName);
+ affectedTables.add(table);
+ return table;
}
catch (DBException ex)
{
@@ -151,7 +153,9 @@ public abstract class Mapping implements IMapping
try
{
- return table.addField(fieldName, fieldType);
+ IDBField field = table.addField(fieldName, fieldType);
+ affectedTables.add(table);
+ return field;
}
catch (DBException ex)
{