Commit 04a7a845 authored by Dmitry Volodin's avatar Dmitry Volodin
Browse files

Merge branch 'fix-avs-profile-selector-migration' into 'master'

Fix ManagedObjectSelector filter_profile field migration.

See merge request noc/noc!3012
parents 5c8226fe 548eddff
......@@ -47,6 +47,14 @@ class Migration(BaseMigration):
[pmap[p], p],
UPDATE sa_managedobjectselector
SET filter_profile = %s
WHERE filter_profile = %s
[pmap[p], p],
# Set profile as not null
self.db.execute("ALTER TABLE sa_managedobject ALTER profile SET NOT NULL")
# Drop legacy profile_name
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment