feat(mysql): edit foreign keys and triggers
This commit is contained in:
1 parent
1d2d348dd8
commit
a858a6bd18
23 files changed
+838
-22
No files matched your search
@@ -1801,6 +1801,8 @@ pub async fn list_foreign_keys(pool: &Pool, schema: &str, table: &str) -> Result
|
||||
ref_schema: Some(row.get::<_, String>(2)),
|
||||
ref_table: row.get::<_, String>(3),
|
||||
ref_column: row.get::<_, String>(4),
|
||||
on_update: None,
|
||||
on_delete: None,
|
||||
})
|
||||
.collect())
|
||||
}
|
||||
@@ -1824,6 +1826,7 @@ pub async fn list_triggers(pool: &Pool, schema: &str, table: &str) -> Result<Vec
|
||||
name: row.get::<_, String>(0),
|
||||
event: row.get::<_, String>(1),
|
||||
timing: row.get::<_, String>(2),
|
||||
statement: None,
|
||||
})
|
||||
.collect())
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user