faustinoaq changed the topic of #amber to: Welcome to Amber Framework community! | https://amberframework.org | Developer happiness, productivity and bare metal performance | GH: https://github.com/amberframework | Docs: https://docs.amberframework.org | Gitter: https://gitter.im/amberframework/amber | IRC Logger: https://irclog.whitequark.org/amber | Amber::Server.start
_whitelogger has joined #amber
<FromGitter> <nsuchy> when running a micrate migration when you have two databases connected
<FromGitter> <nsuchy> how do you choose which database to run a migration on
<FromGitter> <Blacksmoke16> could try throwing a `use xxx` in there
<FromGitter> <Blacksmoke16> er nvm thats for schemas, you mean you have two separate server adapters registered?
<FromGitter> <nsuchy> I have multiple databases
<FromGitter> <nsuchy> the app database
<FromGitter> <nsuchy> and blesta user data
<FromGitter> <nsuchy> I want to only modify the app database
<FromGitter> <Blacksmoke16> looks like it uses the env var or whats defined in settings
<FromGitter> <nsuchy> thanks
<FromGitter> <nsuchy> this system was built quickly on temporary tables and now we're pushing a lot of it into Blesta and removing old models
<FromGitter> <nsuchy> no need to have two copies of data
<FromGitter> <nsuchy> that makes referential integrity more difficult
<FromGitter> <Blacksmoke16> indeed
<FromGitter> <nsuchy> so removed the service and user models and replaced with BlestaUser and BlestaService models
<FromGitter> <nsuchy> but some stuff is stuck due to postgres indexes to use the old tables
<FromGitter> <nsuchy> so writing queries to unlink stuff
<FromGitter> <Blacksmoke16> 👍