I’m searching a way to create an automatic database installation when it’s empty.
Before starting to create a [bash] script for it, i would know if it's possible using the updating process included in trinitycore.
I’ve a test/dev server where various dev “play” with sql queries.
So i’ve to very often reset the database to a clean state.
The manual iter for this is simple:
- DROP DATABASE world_database; CREATE DATABASE world_database;
2) install latest TDB version
3) install diff updates
4) install /custom/* things
Now, about the step 2 , would be possible to add the TDB full sql in a custom folder to be imported before updates?
in this way we’ve only to manually clean the db to start a clean installation process at trinitycore start.