migrations: Add JoistCli.generateFlushFunction().
Merge branch 'master' into stable

* master:
  migrations: Add JoistCli.generateFlushFunction().