GITLAB_SECRETS_DB_KEY_BASE Change Migrate Old Variables

I had to increase the GITLAB_SECRETS_DB_KEY_BASE key and after doing this I get error on CLI in the project. I am able to fix it by removing the variables from database. I am wondering if there is a way to migrate those in the database using the new key. I do have the old key.