I’ve used code above on dev env, and then migrate to production env without errors. Everything works, but all text and symbols was replaced to �����. See https://yadi.sk/i/xmQCNpRzmfr8K
UPD: original text was in russian
Check “database build” option on plugin’s settings page.
Try to set it “use php”. And then build new package.
This is helps me, and I hope will help you.