server/sql
balrok db7c9f4fc1 [8549] Eventloading check
Through the eventsystem can be quite complex and errormessages should
be quite meaningful for finding mistakes in sql
I decided to create another table in database
This table will just contain the map,event1,event2 and a human
readable description of every event
the primary key is over map,event1,event2

this table will be outer joined with bg_creatures,bg_gameobject
so every inner-join part will just match those events and create no error

but every outer join part will mean there was something wrong
(either a spawn which has no existant event, or an event where no spawn is
inside)

also this table is very useful for db-developers, to see which events exist
without looking into code and understanding the logic behind the code

also please note:
those error-checks don't (and can't) report every mistake..
for example if you have an arathibasin node - and add just one creature in this
event - this system won't look, if you've spawned all needed gameobjects and so
on..
an idea would be to add to this table how much gameobjects and creatures have to
be there at minimum - but i doubt that this will be much helpful
also i won't stop battlegrounds from loading if not all events do exist
(just cause i see no need in it)
2009-09-28 16:44:02 +02:00
..
tools [7017] Updated copyright notice for new year 2009-01-03 18:09:51 +01:00
updates [8549] Eventloading check 2009-09-28 16:44:02 +02:00
characters.sql [8505] Set character spell 16857 active. 2009-09-16 11:05:42 +02:00
create_mysql.sql Imported MaNGOS revision 6767 from http://mangos.svn.sourceforge.net/svnroot/mangos/trunk/ 2008-10-14 00:29:20 +02:00
drop_mysql.sql Imported MaNGOS revision 6767 from http://mangos.svn.sourceforge.net/svnroot/mangos/trunk/ 2008-10-14 00:29:20 +02:00
Makefile.am [7017] Updated copyright notice for new year 2009-01-03 18:09:51 +01:00
mangos.sql [8549] Eventloading check 2009-09-28 16:44:02 +02:00
mangos_spell_check.sql [8516] Implement spell 53271. 2009-09-20 23:59:01 +04:00
realmd.sql [8398] Restore proper line-ends in touched sql files. 2009-08-21 03:05:21 +04:00