You've already forked explain.depesz.com
mirror of
https://gitlab.com/depesz/explain.depesz.com.git
synced 2025-11-29 23:08:18 +02:00
On delete plan, delete the query too
This commit is contained in:
@@ -317,7 +317,7 @@ sub delete_plan {
|
||||
my $self = shift;
|
||||
my ( $plan_id, $delete_key ) = @_;
|
||||
my @row = $self->dbh->selectrow_array(
|
||||
'UPDATE plans SET plan = ?, title = ?, is_deleted = true, delete_key = NULL WHERE id = ? and delete_key = ? RETURNING 1',
|
||||
'UPDATE plans SET plan = ?, title = ?, is_deleted = true, delete_key = NULL, query = NULL WHERE id = ? and delete_key = ? RETURNING 1',
|
||||
undef,
|
||||
'',
|
||||
'This plan has been deleted.',
|
||||
|
||||
Reference in New Issue
Block a user