Setting node ID sequence to a particular higher value for future created records We have an organic groups based portal in D7 where many blood banks add records. We recently initiated Drupal 8 migration and are close to completion. However, we would want to add selective blood banks first to the new D8 portal, have it tested before we ask all the other blood banks to use the new portal.
Is it possible to set a higher NID value when new records are created by new users? Migration data for remaining customers can happen seamlessly as their NID values will be lower.
Thanks.
Yes, you can set the nid to a higher value in your D8 instance, then continue to migrate D7 nodes under that.
Something like the following to set the auto_increment value.
// Set the next auto increment field value on the table
$result = db_query('ALTER TABLE {' . $connection-&gt;escapeTable($table) . '} AUTO_INCREMENT = ' . (int)$auto_increment);

e.g for node and node_revision
// Set the next auto increment field value on the node tables
$result = db_query('ALTER TABLE {node} AUTO_INCREMENT = 8000000');
$result = db_query('ALTER TABLE {node_revision} AUTO_INCREMENT = 8000000');