generateDropConstraintSQL method

String generateDropConstraintSQL(
  1. String table,
  2. String name
)

Drops the constraint name of table: ALTER TABLE table DROP CONSTRAINT IF EXISTS name.

Implementation

String generateDropConstraintSQL(String table, String name) {
  var q = dialect.elementQuote;
  return 'ALTER TABLE $q$table$q DROP CONSTRAINT IF EXISTS $q$name$q ;';
}