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.

data type modification not tracked

See original GitHub issue

Changing an enum type to string is not tracked in change sets.

E.g. changing chartType from (default) int …

@Entity
public class Chart {
    public enum ChartType {
            AREA, AREASPLINE, BAR, COLUMN, LINE, PIE, SCATTER, SPLINE
    }

    @Column(nullable = false, length = 50)
    private ChartType chartType;
}

to string

@Entity
public class Chart {
    public enum ChartType {
            AREA, AREASPLINE, BAR, COLUMN, LINE, PIE, SCATTER, SPLINE
    }

    @Column(nullable = false, length = 50)
    @Enumerated(EnumType.STRING)
    private ChartType chartType;
}

“change set” should be

<modifyDataType
tableName="chart" columnName="chart_type" newDataType="VARCHAR(50)" />

but is empty

┆Issue is synchronized with this Jira Bug by Unito

Issue Analytics

  • State:open
  • Created 9 years ago
  • Reactions:4
  • Comments:12 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
zak905commented, Jan 11, 2019

any updates about this ? facing the same issue.

4reactions
tbieniekcommented, Jan 7, 2021

Any progress with this issue ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Modify or change the data type setting for a field
Convert to this type From this type Changes or restrictions Text Memo Access deletes all but the first 255 characters. Number No restrictions. Currency No restrictions....
Read more >
Field History Tracking - Salesforce Help
Modifying any of these fields adds an entry to the History related list. All entries include the date, time, nature of the change,...
Read more >
hibernate - JPA: "Data too long for column" does not change
You change the type of a column in the code adding the annotation @Lob. Cause. Hibernate only updates the original table, not the...
Read more >
How to track changes in SQL Server
But will this new change be reflected to the CDC change table? The answer depends on the change type; if you change the...
Read more >
Track changes using Change column types - AppSheet Help
In some apps, it is important to track when and where some data was changed. For example, in a field service app, it...
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