# Automatic migration turn off

**URL:** <https://community.auth0.com/t/automatic-migration-turn-off/38985>\
**Category:** Get Help\
**Tags:** migration, auth0\
**Created:** [March 6, 2020, 8:38pm UTC](https://community.auth0.com/t/automatic-migration-turn-off/38985 "2020-03-06T20:38:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![luke1988](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/luke1988/32/13158_2.png) [@luke1988](https://community.auth0.com/u/luke1988)\
**Post date:** [March 6, 2020, 8:38pm UTC](https://community.auth0.com/t/automatic-migration-turn-off/38985/1 "2020-03-06T20:38:12Z")

</div>

Hi there,

I had a problem with automatic migration, which I solved thank to [this post](http://community.auth0.com/t/automatic-user-migration-with-custom-database-not-working-solved/16622?)

The asking user gave you an advice to update documentation, which seems still not to be updated. He or she also asked a question which I am facing now:

Please be more clear as what you mean by “disconnect your legacy database” in the last paragraph of the " Automatic User Migration with Custom Database Connection" document:

At this point, you can disconnect your legacy database ( **not** the Auth0 database). You will also want to keep **Import Users to Auth0** (on the **Settings** page) enabled. Your users will then be directed to use the new database workflow.

Do we need to turn off the custom db connection under the application and turn on the “Username-Password-Authentication” connection? Or should we just leave everything(connections) as is, just remove our own Login/getUser script?

Thanks!

---

<div class="post-metadata">

**Author:** ![mathiasconradt](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mathiasconradt/32/12758_2.png) [@mathiasconradt](https://community.auth0.com/u/mathiasconradt)\
**Post date:** [March 6, 2020, 11:54pm UTC](https://community.auth0.com/t/automatic-migration-turn-off/38985/2 "2020-03-06T23:54:19Z")

</div>

I added a comment to the post you just linked. Here’s what I wrote:

> Do we need to turn off the custom db connection under the application and turn on the “Username-Password-Authentication” connection?

No

> Or should we just leave everything(connections) as is, just remove our own Login/getUser script?

Yes, you leave everything as is, but put in the login/getUser script as per docs. That’s all you need to do.

“Disconnecting your legacy database” basically means that after you’ve changed the login/getUser script, Auth0 won’t call your physical legacy DB anymore and you’re free to shut that DB server down, close the firewall on your end, etc.
