summaryrefslogtreecommitdiff
path: root/hercules/import_newdb.sh
blob: ba81d4f2ab53da6e26161e2fed867e6733f4f18f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env bash

export CMD="$*"

if [[ -z "${CMD}" ]]; then
    echo "Usage example: ./import_newsb.sh -u evol -pevol evol"
    exit
fi

cd newdb

function import {
echo Importing $1
mysql $CMD <$1
}

import acc_reg_num_db.sql
import char.sql
import char_reg_num_db.sql
import inventory.sql
import login.sql
import party.sql
import skill.sql
import storage.sql