s4

changeset 1027:f389a311a8d4

Rename function name
author HIROSE Yuuji <yuuji@gentei.org>
date Wed, 06 Dec 2023 20:13:42 +0900
parents a3ec2a73dd33
children 6e24f1ecf13e
files s4-funcs.sh s4-migrate.sh
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line diff
     1.1 --- a/s4-funcs.sh	Wed Dec 06 17:29:00 2023 +0900
     1.2 +++ b/s4-funcs.sh	Wed Dec 06 20:13:42 2023 +0900
     1.3 @@ -4009,7 +4009,7 @@
     1.4  EOF
     1.5  }
     1.6  
     1.7 -clean-orphaned() {
     1.8 +clean_orphaned() {
     1.9    # This shoud be done by foreign_key rules, but some db lack them
    1.10    query<<-EOF
    1.11  	-- Find blogs that have no parent
    1.12 @@ -4100,7 +4100,7 @@
    1.13  	query "delete from $tbl where rowid=$rowid;"
    1.14  	clearcachedir "$tbl/$rowid"
    1.15  	if [ x"$tbl" = x"grp" -o x"$tbl" = x"blog" ]; then
    1.16 -	  clean-orphaned
    1.17 +	  clean_orphaned
    1.18  	fi
    1.19  	return 4
    1.20        else
     2.1 --- a/s4-migrate.sh	Wed Dec 06 17:29:00 2023 +0900
     2.2 +++ b/s4-migrate.sh	Wed Dec 06 20:13:42 2023 +0900
     2.3 @@ -221,7 +221,7 @@
     2.4  	echo "Done."
     2.5  	echo "Success!!"
     2.6  	query "END;"
     2.7 -	clean-orphaned
     2.8 +	clean_orphaned
     2.9  	echo "Done."
    2.10        else
    2.11  	echo Removal failed