1
0
Fork 0
mirror of https://codeberg.org/tyy/aspm synced 2024-12-22 20:39:29 -07:00

Cascade key deletions

This commit is contained in:
Tyler Beckman 2024-02-18 20:42:20 -07:00
parent bc4223a06d
commit 756b97da8a
Signed by: Ty
GPG key ID: 2813440C772555A4
2 changed files with 2 additions and 2 deletions

View file

@ -61,7 +61,7 @@ impl MigrationTrait for Migration {
super::m_20230701_000001_create_keys_table::Keys::Fingerprint
)
.on_update(ForeignKeyAction::Cascade)
.on_delete(ForeignKeyAction::Restrict)
.on_delete(ForeignKeyAction::Cascade)
)
.col(
ColumnDef::new(Profiles::Name)

View file

@ -80,7 +80,7 @@ impl AspmSubcommand for KeysDeleteCommand {
};
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())
.context("Unable to prompt on stderr")?;