-- Place your SQL code here
USE vn;                  

DROP TABLE IF EXISTS workerAppTester;

CREATE TABLE `workerAppTester` (
  `workerFk` int(10) unsigned NOT NULL,
  PRIMARY KEY (`workerFk`),
  KEY `workerAppTester_FK` (`workerFk`),
  CONSTRAINT `workerAppTester_FK_1` FOREIGN KEY (`workerFk`) REFERENCES `worker` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='La tabla incluye usuarios testers que actualizarán a una versión diferente que el resto para testear los cambios nuevos en las app';

-- vn.mobileAppVersionControl definition

ALTER TABLE vn.mobileAppVersionControl ADD urlProduction varchar(100) NULL;
ALTER TABLE vn.mobileAppVersionControl ADD urlBeta varchar(100) NULL;
ALTER TABLE vn.mobileAppVersionControl ADD versionBeta varchar(45) NULL;
ALTER TABLE vn.mobileAppVersionControl ADD isVersionBetaCritical tinyint(1) DEFAULT 0 NULL;
ALTER TABLE vn.mobileAppVersionControl CHANGE IsVersionCritical isVersionCritical tinyint(1) DEFAULT 0 NULL;