mss_dataserver.core.database_util.add_unique_constraint

mss_dataserver.core.database_util.add_unique_constraint(engine, table, constraint)[source]

Add a unique constraint to the table.

Parameters
  • engine (sqlalchemy.engine.Engine) – The sqlalchemy database Engine.

  • table (sqlalchemy.schema.Table) – The table to migrate.

  • constraint (String) – The name of the constraint.