Fix some bugs in the wirecloud.platform's migrations