ALTER TABLE `sys_tenant`
CHANGE COLUMN `id` `tenant_id`  bigint(20) NOT NULL AUTO_INCREMENT FIRST ;


INSERT INTO `sys_tenant` VALUES ('1', null, '济南报业', '1', null, null, '1', '0', null, '2019-11-16 15:35:12', '1', '0');


UPDATE sys_user SET tenant_id=1 WHERE user_id!=1;

UPDATE edit_project SET tenant_id=1;

UPDATE live_multimedia SET tenant_id=1;

UPDATE live_report SET tenant_id=1;

UPDATE live_scene SET tenant_id=1;

UPDATE live_scene_check SET tenant_id=1;

UPDATE live_scene_count SET tenant_id=1;

UPDATE live_scene_live_info SET tenant_id=1;

UPDATE live_scene_record SET tenant_id=1;

UPDATE live_caster SET tenant_id=1;

UPDATE live_scene_live_info_ext SET tenant_id=1;

UPDATE live_scene_live_info_record SET tenant_id=1;