mirror of
https://codeberg.org/tyy/aspm
synced 2024-12-22 20:39:29 -07:00
Cascade key deletions
This commit is contained in:
parent
bc4223a06d
commit
756b97da8a
2 changed files with 2 additions and 2 deletions
|
@ -61,7 +61,7 @@ impl MigrationTrait for Migration {
|
||||||
super::m_20230701_000001_create_keys_table::Keys::Fingerprint
|
super::m_20230701_000001_create_keys_table::Keys::Fingerprint
|
||||||
)
|
)
|
||||||
.on_update(ForeignKeyAction::Cascade)
|
.on_update(ForeignKeyAction::Cascade)
|
||||||
.on_delete(ForeignKeyAction::Restrict)
|
.on_delete(ForeignKeyAction::Cascade)
|
||||||
)
|
)
|
||||||
.col(
|
.col(
|
||||||
ColumnDef::new(Profiles::Name)
|
ColumnDef::new(Profiles::Name)
|
||||||
|
|
|
@ -80,7 +80,7 @@ impl AspmSubcommand for KeysDeleteCommand {
|
||||||
};
|
};
|
||||||
|
|
||||||
let confirmation = Confirm::with_theme(&ColorfulTheme::default())
|
let confirmation = Confirm::with_theme(&ColorfulTheme::default())
|
||||||
.with_prompt("Are you sure you want to delete this key?")
|
.with_prompt("Are you sure you want to delete this key? This will also remove any profiles that use this key!")
|
||||||
.interact_on(&Term::stderr())
|
.interact_on(&Term::stderr())
|
||||||
.context("Unable to prompt on stderr")?;
|
.context("Unable to prompt on stderr")?;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue