Exemple #1
0
        public override void Perform(SchemaChanges changes, IOutput output)
        {
            foreach (var current in FulltextIndexType.AllFrom(changes.Current))
            {
                if (!FulltextIndexType.FulltextIndexHasChanged(changes, current))
                {
                    continue;
                }

                changes.RemoveWithoutTransaction(changes.SchemaDriver.GetDropFulltextIndexSql(current.Name), current);
            }
        }
Exemple #2
0
        public override void Perform(SchemaChanges changes, IOutput output)
        {
            foreach (var desired in FulltextIndexType.AllFrom(changes.Desired))
            {
                if (changes.Current.Contains(desired))
                {
                    continue;
                }

                changes.PutWithoutTransaction(changes.SchemaDriver.GetCreateFulltextIndexSql(desired.Name, desired.ParentName, desired.State.KeyName, desired.State.Columns),
                                              desired);
            }
        }