|
|
@@ -29,7 +29,7 @@ CREATE PROCEDURE sp_city_n(IN n INT)
|
|
|
SET @prevFieldId = ifnull((SELECT prev_id from trs_data_migration.data_migration_log where table_name = 'xwcmdbfieldinfo'), 0);
|
|
|
SET @prevMetaViewEmployerId = ifnull((SELECT prev_id from trs_data_migration.data_migration_log where table_name = 'xwcmmetaviewemployer'), 0);
|
|
|
SET @prevTableInfoId = ifnull((SELECT prev_id from trs_data_migration.data_migration_log where table_name = 'xwcmtableinfo'), 0);
|
|
|
- SET @prevViewFieldId = ifnull((SELECT prev_id from trs_data_migration.data_migration_log where table_name = 'xwcmviewfieldinfo'), 0);
|
|
|
+ SET @prevViewFieldInfoId = ifnull((SELECT prev_id from trs_data_migration.data_migration_log where table_name = 'xwcmviewfieldinfo'), 0);
|
|
|
SET @prevViewId = ifnull((SELECT prev_id from trs_data_migration.data_migration_log where table_name = 'xwcmviewinfo'), 0);
|
|
|
SET @prevMetaViewFieldGroupId = ifnull((SELECT prev_id from trs_data_migration.data_migration_log where table_name = 'xwcmmetaviewfieldgroup'), 0);
|
|
|
SET @prevAppendixId = ifnull((SELECT prev_id from trs_data_migration.data_migration_log where table_name = 'wcmappendix'), 0);
|
|
|
@@ -37,16 +37,16 @@ CREATE PROCEDURE sp_city_n(IN n INT)
|
|
|
|
|
|
|
|
|
# xx ID 偏移量,为了和海云系统中的 xx ID 错开一段距离
|
|
|
- SET @siteIdOffset = 10000 * @n;
|
|
|
- SET @viewIdOffset = 10000 * @n;
|
|
|
- SET @tableInfoIdOffset = 10000 * @n;
|
|
|
- SET @metaViewFieldGroupIdOffset = 10000 * @n;
|
|
|
+ SET @siteIdOffset = 100000 * @n;
|
|
|
+ SET @viewIdOffset = 100000 * @n;
|
|
|
+ SET @tableInfoIdOffset = 100000 * @n;
|
|
|
+ SET @metaViewFieldGroupIdOffset = 100000 * @n;
|
|
|
|
|
|
SET @classInfoViewIdOffset = 100000 * @n;
|
|
|
SET @classInfoIdOffset = 100000 * @n;
|
|
|
SET @fieldIdOffset = 1000000 * @n;
|
|
|
SET @metaViewEmployerIdOffset = 100000 * @n;
|
|
|
- SET @viewFieldIdOffset = 100000 * @n;
|
|
|
+ SET @viewFieldInfoIdOffset = 100000 * @n;
|
|
|
SET @dbFieldIdOffset = 100000 * @n;
|
|
|
|
|
|
SET @channelIdOffset = 1000000 * @n;
|
|
|
@@ -84,7 +84,7 @@ CREATE PROCEDURE sp_city_n(IN n INT)
|
|
|
call sp_data_migration_xwcmmetaviewemployer(@prevMetaViewEmployerId, @metaViewEmployerIdOffset, @viewIdOffset, @siteIdOffset, @channelIdOffset);
|
|
|
call sp_data_migration_xwcmmetaviewfieldgroup(@prevMetaViewFieldGroupId, @metaViewFieldGroupIdOffset, @viewIdOffset);
|
|
|
call sp_data_migration_xwcmtableinfo(@citySuffix, @prevTableInfoId, @tableInfoIdOffset);
|
|
|
- call sp_data_migration_xwcmviewfieldinfo(@citySuffix, @prevViewFieldId, @viewFieldIdOffset, @tableInfoIdOffset, @prevClassInfoId, @dbFieldIdOffset, @metaViewFieldGroupIdOffset, @viewIdOffset, @viewIdOffset);
|
|
|
+ call sp_data_migration_xwcmviewfieldinfo(@citySuffix, @prevViewFieldInfoId, @viewFieldInfoIdOffset, @tableInfoIdOffset, @prevClassInfoId, @dbFieldIdOffset, @metaViewFieldGroupIdOffset, @viewIdOffset, @viewIdOffset);
|
|
|
call sp_data_migration_xwcmviewinfo(@citySuffix, @prevViewId, @viewIdOffset, @tableInfoIdOffset);
|
|
|
call sp_data_migration_wcmmetatable(@prevTableInfoId, @prevDocId, @docIdOffset, @channelIdOffset);
|
|
|
|