Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
40567: sqlmigrations: really skip baked-in migrations when asked to skip them r=andreimatei a=andreimatei EnsureMigrations() optinally can be told to skip the migrations that are included in the bootstrap schema when the node running the migrations has just bootstraped the cluster. Except the mechanism wasn't actually skipping them. This patch fixes that. There are two places in that function where we check if we can skip a migration, and only one of them was correct. The whole idea of skipping these migrations is arguable because the check only applies to the node that bootstrapped the cluster. All the other nodes will still run them. So I can also get rid of the thing if reviewers ask. Release note: None Co-authored-by: Andrei Matei <andrei@cockroachlabs.com>
- Loading branch information