01: /*
02: * Created by IntelliJ IDEA.
03: * User: sg426575
04: * Date: May 8, 2006
05: * Time: 1:49:22 AM
06: */
07: package com.technoetic.xplanner.upgrade.schema;
08:
09: /** @noinspection MagicNumber,ClassNamingConvention,RefusedBequest*/
10: public class MySqlTo4_0DBDialect extends MySqlDBDialect {
11: public double getToVersion() {
12: return 4.0;
13: }
14:
15: public String getAddForeignKeyConstraintQuery(String table,
16: String constraintName, String foreignKey,
17: String referencedTable, String referencedKey) {
18: return getCreateIndexQuery(table, constraintName, foreignKey,
19: false)
20: + ";"
21: + super .getAddForeignKeyConstraintQuery(table,
22: constraintName, foreignKey, referencedTable,
23: referencedKey) + ";";
24: }
25: }
|