From 32372c2a73f33a5f7a095ac0857069405bb56442 Mon Sep 17 00:00:00 2001 From: shenlei Date: Fri, 16 Oct 2026 03:40:50 +0900 Subject: [PATCH] vip-card: back up the proto rows as REPLACE statements only A plain mysqldump --where also writes DROP/CREATE TABLE, so restoring the backup would have emptied item_proto down to the two cards. Co-Authored-By: Claude Opus 5.5 --- tools/server/vip-card/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/server/vip-card/install.sh b/tools/server/vip-card/install.sh index dcedb68e..e0cb7466 100644 --- a/tools/server/vip-card/install.sh +++ b/tools/server/vip-card/install.sh @@ -14,7 +14,7 @@ export LC_ALL=C mkdir -p "$BACKUP" cp -p "$PROTO" "$NAMES" "$BACKUP/" -mysqldump -uroot player item_proto --where="vnum in (38001,38002)" > "$BACKUP/item_proto-rows.sql" +mysqldump -uroot --no-create-info --replace player item_proto --where="vnum in (38001,38002)" > "$BACKUP/item_proto-rows.sql" echo "backup: $BACKUP" # item_proto.txt: column 5 size, 6 anti flags, 7 flags.