refreshVersions icon indicating copy to clipboard operation
refreshVersions copied to clipboard

Migration changes the SQLDelight dialect version

Open 1gravity opened this issue 3 years ago • 1 comments

🐛 Describe the bug

when running a a migration this:

sqldelight {
    database("SudokuDatabase") {
        packageName = "com.mydomain.myapp"
        sourceFolders = listOf("sqldelight")
        dialect = "sqlite:3.25"
    }
}

is changed to:

sqldelight {
    database("SudokuDatabase") {
        packageName = "com.mydomain.myapp"
        sourceFolders = listOf("sqldelight")
        dialect = "sqlite:3.25:_"
    }
}

The build obviously fails afterwards.

⚠️ Current behavior

Migrations converts dialect = "sqlite:3.25" to dialect = "sqlite:3.25:_"

✅ Expected behavior

Migrations doesn't convert dialect = "sqlite:3.25"

💣 Steps to reproduce

Add SQLDelight to an app and run a migration.

1gravity avatar Oct 01 '22 03:10 1gravity

@jmfayard Relates to #470

LouisCAD avatar Oct 01 '22 20:10 LouisCAD