question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Migration] Migration probably shouldn't call migration script for current schema

See original GitHub issue

This is a…


[ ] Feature request
[ ] Regression (a behavior that used to work and stopped working in a new release)
[X] Bug report  
[ ] Documentation issue or request

Description

When doing the upgrade from 1.6.9 to latest, I am on 28 schema from 1.6.9, however the migration script for schema 28 is called during the upgrade:

07:38:23.766 Current database schema version: 28
07:38:23.799 Migrating to schema: 28
Migration to schema 28 ...
This migration will auto add split steps to integrations with implicit split configured
Migrating integration ':i-LeuOQBxh0156frqpBxYz' - adding explicit split step
Number of integrations migrated: 1
Migrated to schema 28 completed

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

github_iconTop Results From Across the Web

[Proposal] New migrate primitives to resolve failed ... - GitHub
We could offer migrate primitives to resolve failed migrations. Fundamentally you have two options how to proceed, forward and backwards: fix ...
Read more >
Why is migration script no longer being used for deployment
Migration scripts are intended to run only once against a specific target database, so if you've already run the deployment script on that ......
Read more >
Rails migration: only for schema change or also for updating ...
The short version is, since migrations are only for schema changes, you wouldn't want to use them to change actual data in the...
Read more >
Your migrations are bad and you should feel bad
This talk about making changes to the structure of your database. Schema changes, schema migrations, whatever you want to call them.
Read more >
Managing Rails schema and data migrations without losing ...
Rails database migrations are extremely powerful, but can be a mess if we don't avoid the traps. This article outlines a boring way...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found