Open sergejsha opened 1 year ago
Any fixes planned?
Additional sample
1.sqm
-- Create table with index
CREATE TABLE Table1(
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
paretnId INTEGER NOT NULL
);
CREATE INDEX Table1_paretnId ON Table1 (paretnId);
2.sqm
-- Drop table (automatically drop index)
DROP TABLE Table1;
-- Create table with index
CREATE TABLE Table1(
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
paretnId INTEGER NOT NULL,
name TEXT
);
CREATE INDEX Table1_paretnId ON Table1 (paretnId); -- Warning "Duplicate index name Table1_paretnId"
SQLDelight Version
2.0.0
IDE Version
Android Studio Giraffe | 2022.3.1 Patch 1
Dialect
SQLite
Describe the Bug
Given a table with two fields and two indexes for each field.
Expected behavior:
Temporal workaround: before dropping a table, drop all indexes of that table in migration script. This allows index re-creation.
Stacktrace
No response