START TRANSACTION;

  ALTER TABLE `dates` CHANGE `date` `date_from` DATE NOT NULL DEFAULT '0000-00-00';
  ALTER TABLE `dates` ADD `date_to` DATE NOT NULL DEFAULT '0000-00-00' AFTER `date_from`;

  INSERT INTO `fields` VALUES (NULL, 'lblDateFrom', 'backend', 'Label / Date from', 'script', NULL);
  SET @id := (SELECT LAST_INSERT_ID());
  INSERT INTO `multi_lang` VALUES (NULL, @id, 'pjField', '::LOCALE::', 'title', 'Date from', 'script');

  INSERT INTO `fields` VALUES (NULL, 'lblDateTo', 'backend', 'Label / Date to', 'script', NULL);
  SET @id := (SELECT LAST_INSERT_ID());
  INSERT INTO `multi_lang` VALUES (NULL, @id, 'pjField', '::LOCALE::', 'title', 'Date to', 'script');

  ALTER TABLE `plugin_invoice_config` ADD `o_start_number` INT NULL DEFAULT NULL AFTER `o_use_qty_unit_price`;

  INSERT INTO `fields` VALUES (NULL, 'lblInvoiceStartNumber', 'backend', 'Label / Start number', 'script', NULL);
  SET @id := (SELECT LAST_INSERT_ID());
  INSERT INTO `multi_lang` VALUES (NULL, @id, 'pjField', '::LOCALE::', 'title', 'Start number', 'script');

COMMIT;