Skip to content

Commit

Permalink
Fix install script not installing database due to version prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
Niam5 committed May 20, 2024
1 parent f2ee332 commit cde5338
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 60 deletions.
2 changes: 1 addition & 1 deletion sql/base/characters.sql
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

DROP TABLE IF EXISTS `character_db_version`;
CREATE TABLE `character_db_version` (
`required_13963_01_characters_account_instances_entered` bit(1) DEFAULT NULL
`required_c0001_01_characters_account_instances_entered` bit(1) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Last applied sql update to DB';

--
Expand Down
5 changes: 5 additions & 0 deletions sql/updates/logs/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
This folder contains SQL files which will apply required updates to your MySQL
database, whenever the CMaNGOS database structure has been changed or extended.

After applying an update the DB is compatible with the CMaNGOS revision of this sql update.
SQL updates include special protection against multiple and wrong order of update application.
55 changes: 0 additions & 55 deletions sql/updates/logs/c0001_01_logs_anticheat.sql

This file was deleted.

3 changes: 0 additions & 3 deletions sql/updates/realmd/c0000_01_realmd_account_drop_sha.sql

This file was deleted.

2 changes: 1 addition & 1 deletion src/shared/revision_sql.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#ifndef __REVISION_SQL_H__
#define __REVISION_SQL_H__
#define REVISION_DB_REALMD "required_c0001_01_realmd_account_drop_sha"
#define REVISION_DB_CHARACTERS "required_13963_01_characters_account_instances_entered"
#define REVISION_DB_CHARACTERS "required_c0001_01_characters_account_instances_entered"
#define REVISION_DB_MANGOS "required_c0003_02_mangos_quest_data"
#endif // __REVISION_SQL_H__

0 comments on commit cde5338

Please sign in to comment.