topaz-next / topaz

💎 A server emulator for Final Fantasy XI.
GNU General Public License v3.0
56 stars 80 forks source link

Add setup option to dbtool #2597

Closed cocosolos closed 3 years ago

cocosolos commented 3 years ago

python3 dbtool.py setup tpzdb will perform the same actions that running dbtool.py would perform if tpzdb did not exist, but without input from the user. The database name passed in must match the name in map.conf. This will overwrite an existing table, so use with caution. Also adds a check for new migrations so python3 dbtool.py update will still check for and perform any migrations even if there is no accompanying SQL changes.

I affirm:

Temporary: