From c235a8239177d38117f3313d17b904b66a806378 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 14 Feb 2024 23:20:44 +0100 Subject: Add import-game and export-game scripts. To bulk transfer all game state, replay, and snapshots into a new game. --- tools/export-game.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tools/export-game.sh (limited to 'tools/export-game.sh') diff --git a/tools/export-game.sh b/tools/export-game.sh new file mode 100644 index 0000000..19cd4e7 --- /dev/null +++ b/tools/export-game.sh @@ -0,0 +1,8 @@ +#!/bin/bash +if [ -n "$1" ] +then + sqlite3 db "select export from game_export_view where game_id=$1" +else + echo "usage: bash tools/export-game.sh GAME > game.json" +fi + -- cgit v1.2.3