From: Andrew Engelbrecht Date: Thu, 18 May 2023 21:45:17 +0000 (-0400) Subject: find expired / current deleted members X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=49302003e8f55da270f1275f578c18e023fce6c0;p=civicrm-scripts.git find expired / current deleted members deleted contacts with expired or current memberships --- diff --git a/deleted-members.sh b/deleted-members.sh new file mode 100755 index 0000000..24fd002 --- /dev/null +++ b/deleted-members.sh @@ -0,0 +1,8 @@ +#! /bin/bash + +# SPDX-FileCopyrightText: 2023 Andrew Engelbrecht +# +# SPDX-License-Identifier: GPL-3.0-or-later + +echo "select c.id from civicrm_contact c inner join civicrm_membership m on c.id = m.contact_id where c.is_deleted != 0" | mysql civicrm | sed -e "s:^:https\://my.fsf.org/civicrm/contact/view?reset=1\&cid=:" +