-- if version table not exists set up version = 0;
update version set version = 0;

DROP TABLE IF EXISTS `version`;

CREATE TABLE `version` (
  `version`  bigint NOT NULL
);

insert into version values (0);

update version set version = 1;