Esempio n. 1
0
        public virtual Statement[] Render(AddUniqueConstraintChange change)
        {
            string sql = string.Format("alter table {0} add constraint {1} {2}",
                                       GetQualifiedName(change.Table),
                                       change.Constraint.Name,
                                       GetUniqueConstraintString(change.Constraint));

            return(new Statement[] { new Statement(sql) });
        }
Esempio n. 2
0
		public virtual Statement[] Render(AddUniqueConstraintChange change)
		{
			string sql = string.Format("alter table {0} add constraint {1} {2}",
				GetQualifiedName(change.Table),
				change.Constraint.Name,
				GetUniqueConstraintString(change.Constraint));

			return new Statement[] { new Statement(sql) };
		}