Add migration for <v0.14.0 to fix shop dc
This commit is contained in:
13
database/sql/migration/README.md
Normal file
13
database/sql/migration/README.md
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
# Migrations
|
||||||
|
The files contained in this directory are intended to be run manually when transitioning from an earlier version of Cosmic to a more recent one.
|
||||||
|
|
||||||
|
Not every version comes with an associated migration script. Only those with breaking changes such as removal of custom assets that would otherwise crash the client.
|
||||||
|
|
||||||
|
This is a temporary solution until automatic database migrations are in place.
|
||||||
|
|
||||||
|
## How to
|
||||||
|
Each script is only intended to be run __once__.
|
||||||
|
|
||||||
|
When a new migration is available, simply run the SQL script in HeidiSQL (or other SQL client of choice).
|
||||||
|
|
||||||
|
If there are multiple new migrations that you haven't run, run them in order starting with the lowest version and ending with the highest version.
|
||||||
2
database/sql/migration/v0.14.0.sql
Normal file
2
database/sql/migration/v0.14.0.sql
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
DELETE FROM shopitems
|
||||||
|
WHERE itemid = 2030100; # Return Scroll - Banished Area (a custom item added in HeavenMS)
|
||||||
Reference in New Issue
Block a user