migrations: Add JoistCli.generateFlushFunction().