[hooks/syncschema] Turn DropColumnOp into a data operation
While writing a test for a migration issue where "NOT NULL" was added to
an inlined relation column, I ran into a case where the same column was
deleted twice, which of course results in an error. This is because the
"ecrit_par" relation used by the test is ambiguous. I've hence turned
the DropColumnOp into a data operation to ensure we'll delete the column
only once in such case.
Related to #6211101
/* * Async Treeview 0.1 - Lazy-loading extension for Treeview * * http://bassistance.de/jquery-plugins/jquery-plugin-treeview/ * * Copyright 2010 Jörn Zaefferer * Released under the MIT license: * http://www.opensource.org/licenses/mit-license.php */;(function($){functionload(settings,root,child,container){functioncreateNode(parent){varcurrent=$("<li/>").attr("id",this.id||"").html("<span>"+this.text+"</span>").appendTo(parent);if(this.classes){current.children("span").addClass(this.classes);}if(this.expanded){current.addClass("open");}if(this.hasChildren||this.children&&this.children.length){varbranch=$("<ul/>").appendTo(current);if(this.hasChildren){current.addClass("hasChildren");createNode.call({classes:"placeholder",text:" ",children:[]},branch);}if(this.children&&this.children.length){$.each(this.children,createNode,[branch])}}}$.ajax($.extend(true,{url:settings.url,dataType:"json",data:{root:root},success:function(response){child.empty();$.each(response,createNode,[child]);$(container).treeview({add:child});}},settings.ajax));/* $.getJSON(settings.url, {root: root}, function(response) { function createNode(parent) { var current = $("<li/>").attr("id", this.id || "").html("<span>" + this.text + "</span>").appendTo(parent); if (this.classes) { current.children("span").addClass(this.classes); } if (this.expanded) { current.addClass("open"); } if (this.hasChildren || this.children && this.children.length) { var branch = $("<ul/>").appendTo(current); if (this.hasChildren) { current.addClass("hasChildren"); createNode.call({ classes: "placeholder", text: " ", children:[] }, branch); } if (this.children && this.children.length) { $.each(this.children, createNode, [branch]) } } } child.empty(); $.each(response, createNode, [child]); $(container).treeview({add: child}); }); */}varproxied=$.fn.treeview;$.fn.treeview=function(settings){if(!settings.url){returnproxied.apply(this,arguments);}if(!settings.root){settings.root="source";}varcontainer=this;if(!container.children().size())load(settings,settings.root,this,container);varuserToggle=settings.toggle;returnproxied.call(this,$.extend({},settings,{collapsed:true,toggle:function(){var$this=$(this);if($this.hasClass("hasChildren")){varchildList=$this.removeClass("hasChildren").find("ul");load(settings,this.id,childList,container);}if(userToggle){userToggle.apply(this,arguments);}}}));};})(jQuery);