There was an error while loading. Please reload this page.
1 parent d2c257b commit b2bbe2cCopy full SHA for b2bbe2c
2 files changed
src/postgres/def/schema.rs
@@ -22,8 +22,6 @@ pub struct TableDef {
22
pub primary_key_constraints: Vec<PrimaryKey>,
23
pub reference_constraints: Vec<References>,
24
pub exclusion_constraints: Vec<Exclusion>,
25
- // FIXME: Duplication? TableInfo also have of_type
26
- // pub of_type: Option<Type>,
27
// TODO:
28
// pub inherets: Vec<String>,
29
}
src/sqlite/def/schema.rs
@@ -10,7 +10,7 @@ impl Schema {
10
pub fn merge_indexes_into_table(mut self) -> Self {
11
for table in self.tables.iter_mut() {
12
for index in self.indexes.iter() {
13
- if index.unique && index.table_name == table.name {
+ if index.table_name == table.name {
14
table.constraints.push(index.clone());
15
16
0 commit comments