SET @api_key="<%= @settings['issues_tracker_api_key'] %>";

UPDATE settings SET value='1' WHERE name='rest_api_enabled';
INSERT INTO tokens (user_id, action, value, created_on) VALUES('1', 'api', @api_key, CURRENT_TIMESTAMP());

SET @api_key="<%= @settings['issues_tracker_api_key'] %>";

INSERT INTO settings (name, value, updated_on) VALUES ('rest_api_enabled','1', CURRENT_TIMESTAMP());
INSERT INTO tokens (user_id, action, value, created_on) VALUES('1', 'api', @api_key, CURRENT_TIMESTAMP());

Fix Redmine API not activated.
Fix Redmine API not activated.

Change-Id: I3aef42863992cb90d5e4e2f870ba300b0bf0e054
