Indexes are not really constraints. Primary key dropping is its own thing, too.

git-svn-id: https://samskivert.googlecode.com/svn/trunk@2519 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
par.winzell
2009-01-08 22:48:52 +00:00
parent eeaa8be638
commit e262fc29d9
@@ -134,15 +134,15 @@ public abstract class BaseLiaison implements DatabaseLiaison
// from DatabaseLiaison
public void dropIndex (Connection conn, String table, String index) throws SQLException
{
executeQuery(conn, "ALTER TABLE " + tableSQL(table) +
" DROP CONSTRAINT " + columnSQL(index));
executeQuery(conn, "DROP INDEX " + columnSQL(index));
}
// from DatabaseLiaison
public void dropPrimaryKey (Connection conn, String table, String pkName)
throws SQLException
{
dropIndex(conn, table, pkName);
executeQuery(conn, "ALTER TABLE " + tableSQL(table) +
" DROP CONSTRAINT " + columnSQL(pkName));
}
// from DatabaseLiaison