db-ddlutils-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject svn commit: r279421 - /db/ddlutils/trunk/src/java/org/apache/ddlutils/builder/SqlBuilder.java
Date Wed, 07 Sep 2005 20:59:10 GMT
Author: tomdz
Date: Wed Sep  7 13:59:06 2005
New Revision: 279421

URL: http://svn.apache.org/viewcvs?rev=279421&view=rev
Log:
Small enhancement so that the alterTable method as full access to both the current and the
desired model

Modified:
    db/ddlutils/trunk/src/java/org/apache/ddlutils/builder/SqlBuilder.java

Modified: db/ddlutils/trunk/src/java/org/apache/ddlutils/builder/SqlBuilder.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/java/org/apache/ddlutils/builder/SqlBuilder.java?rev=279421&r1=279420&r2=279421&view=diff
==============================================================================
--- db/ddlutils/trunk/src/java/org/apache/ddlutils/builder/SqlBuilder.java (original)
+++ db/ddlutils/trunk/src/java/org/apache/ddlutils/builder/SqlBuilder.java Wed Sep  7 13:59:06
2005
@@ -305,7 +305,9 @@
             }
             else
             {
-                alterTable(currentTable, desiredModel, desiredTable, doDrops, modifyColumns);
+                alterTable(currentModel, currentTable,
+                           desiredModel, desiredTable,
+                           doDrops, modifyColumns);
             }
         }
 
@@ -349,6 +351,7 @@
     /**
      * Alters the given currently existing table object to match the given desired table
object.
      * 
+     * @param currentModel The current model
      * @param currentTable The current table definition
      * @param desiredModel The desired model
      * @param desiredTable The desired table definition
@@ -356,7 +359,7 @@
      *                      new schema
      * @param modifyColumns Whether columns should be altered for datatype, size as required
      */
-    protected void alterTable(Table currentTable, Database desiredModel, Table desiredTable,
boolean doDrops, boolean modifyColumns) throws IOException
+    protected void alterTable(Database currentModel, Table currentTable, Database desiredModel,
Table desiredTable, boolean doDrops, boolean modifyColumns) throws IOException
     {
         for (int columnIdx = 0; columnIdx < desiredTable.getColumnCount(); columnIdx++)
         {



Mime
View raw message