Skip to content
This repository has been archived by the owner on Apr 29, 2020. It is now read-only.

Latest commit

 

History

History

migrations

Migrating DSPDB Database

This folder contains python scripts to migrate your database data to a newer format. For example the spells column in the chars table has been separated into a new table, so a migration script has been created to do this for you.

First you'll need python and mysqldb installed on your computer.

Setup

Installing Python

This requires Python 2.7+.

For Windows user, download the installation file for 64-bit computers or 32-bit computers.

For Ubuntu it's already installed.

Installing MySQLdb

A Mysql driver is required to execute mysql commands.

For Windows user, you can get an exe of MySQLdb.

For Ubuntu, sudo apt-get install python-mysqldb.

Running Migrations

Go into the darkstar/migrations directory and execute the migrate.py file.

From the command line: python migrate.py

This will run all out-standing migrations and skip migrations that have already ran. Keep in mind no data is deleted and unused columns is expected to be cleaned up by yourself.