Work in Progress. Editing files below.

Ran the following SQL:

UPDATE `j17_jigs_buildings` SET
`type` = 'generator'
WHERE `type` = 'windmill'
OR `type` = 'turbine'

ALTER TABLE `j17_jigs_generators`
DROP COLUMN `line`

ALTER TABLE `j17_jigs_generators`
DROP COLUMN `timestamp`

ALTER TABLE `j17_jigs_generators`
DROP COLUMN `quantity`

ALTER TABLE `j17_jigs_batteries`
ADD COLUMN `timestamp` INT NOT NULL DEFAULT 0