Skip to content

Commit b2bbe2c

Browse files
committed
SQLite: pass through all indexes
1 parent d2c257b commit b2bbe2c

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

src/postgres/def/schema.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ pub struct TableDef {
2222
pub primary_key_constraints: Vec<PrimaryKey>,
2323
pub reference_constraints: Vec<References>,
2424
pub exclusion_constraints: Vec<Exclusion>,
25-
// FIXME: Duplication? TableInfo also have of_type
26-
// pub of_type: Option<Type>,
2725
// TODO:
2826
// pub inherets: Vec<String>,
2927
}

src/sqlite/def/schema.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ impl Schema {
1010
pub fn merge_indexes_into_table(mut self) -> Self {
1111
for table in self.tables.iter_mut() {
1212
for index in self.indexes.iter() {
13-
if index.unique && index.table_name == table.name {
13+
if index.table_name == table.name {
1414
table.constraints.push(index.clone());
1515
}
1616
}

0 commit comments

Comments
 (0)