Multiple logins migration

Try using the context object in database scripts. More info here: How to use context for scripts in custom db?