html_url,issue_url,id,node_id,user,created_at,updated_at,author_association,body,reactions,performed_via_github_app,issue https://github.com/ACEmulator/ACE/issues/20#issuecomment-277454303,https://api.github.com/repos/ACEmulator/ACE/issues/20,277454303,MDEyOklzc3VlQ29tbWVudDI3NzQ1NDMwMw==,570040,2017-02-04T15:48:45Z,2017-02-04T15:48:45Z,CONTRIBUTOR,"I suggest a reasonable first version of this might look like: 1) an update to the core .sql file and `Config.json` to add a new `ace_global` database with a table `schema_revisions` tracking database schema versions The columns might be something like: `id int(auto increment), schema_name varchar, schema_version int` also insert initial values into the `schema_revisions` table to set the current `schema_version` at 0 on all databases (`ace_auth`, `ace_character`, `ace_world`). 2) add a task that runs during server startup that uses the database names from `Config.json` and compares the .sql files found on the filesystem against the results from `ace_global.schema_revisions` and runs the new ones, and updates the database.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,205353528 https://github.com/ACEmulator/ACE/issues/20#issuecomment-277485102,https://api.github.com/repos/ACEmulator/ACE/issues/20,277485102,MDEyOklzc3VlQ29tbWVudDI3NzQ4NTEwMg==,570040,2017-02-04T23:12:57Z,2017-02-04T23:12:57Z,CONTRIBUTOR,Almost done with this...,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,205353528 https://github.com/ACEmulator/ACE/issues/20#issuecomment-280469751,https://api.github.com/repos/ACEmulator/ACE/issues/20,280469751,MDEyOklzc3VlQ29tbWVudDI4MDQ2OTc1MQ==,25351661,2017-02-16T21:39:47Z,2017-02-16T21:39:47Z,CONTRIBUTOR,"this was recently done with a powershell script that was merged. if you're ok with using that, please close the issue.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,205353528 https://github.com/ACEmulator/ACE/issues/20#issuecomment-281223009,https://api.github.com/repos/ACEmulator/ACE/issues/20,281223009,MDEyOklzc3VlQ29tbWVudDI4MTIyMzAwOQ==,570040,2017-02-21T01:51:53Z,2017-02-21T01:51:53Z,CONTRIBUTOR,"The script can only recreate the initial database table state completely so it won't be useful for server operators. If it were extended with a second script solely for running upgrades that could keep track of the currently run database upgrades somewhere, for example in a flat-file in a temporary directory, so they wouldn't be run again that would be useful.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,205353528 https://github.com/ACEmulator/ACE/issues/20#issuecomment-281333010,https://api.github.com/repos/ACEmulator/ACE/issues/20,281333010,MDEyOklzc3VlQ29tbWVudDI4MTMzMzAxMA==,25351661,2017-02-21T12:36:41Z,2017-02-21T12:36:41Z,CONTRIBUTOR,"The scripts would need to be altered to be re-run safe. MySQL's support for this is spotty, but it could be done.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,205353528 https://github.com/ACEmulator/ACE/issues/20#issuecomment-281344829,https://api.github.com/repos/ACEmulator/ACE/issues/20,281344829,MDEyOklzc3VlQ29tbWVudDI4MTM0NDgyOQ==,570040,2017-02-21T13:31:44Z,2017-02-21T13:31:44Z,CONTRIBUTOR,"For a solution that doesn't require migration authors to worry about that, do something similar to the pull request I created where it tracks the database migrations that have run and only runs them once, in sequential order. That is relatively standard for database-backed applications. You will also run into difficulty with migrations where they are interdependent, i.e. one migration needs to run before another one can be run, because it creates or alters tables used by the other migration. My pull request took all this into account. With your PowerShell solution you could probably track the migrations that have run in a text file or registry key. > On Feb 21, 2017, at 7:36 AM, Mogwai-AC wrote: > > The scripts would need to be altered to be re-run safe. MySQL's support for this is spotty, but it could be done. > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub, or mute the thread. > ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,205353528 https://github.com/ACEmulator/ACE/issues/20#issuecomment-348978063,https://api.github.com/repos/ACEmulator/ACE/issues/20,348978063,MDEyOklzc3VlQ29tbWVudDM0ODk3ODA2Mw==,10608427,2017-12-04T14:30:36Z,2017-12-04T14:30:36Z,MEMBER,"This is pretty stale and we've changed some of the database script since. If this is still an issue we should look into, please open up a new ticket pertaining to the current code base.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,205353528