EF Migrations: Rollback last applied migration?

I want to add some clarification to this thread: Update-Database -TargetMigration:”name_of_migration” What you are doing above is saying that you want to rollback all migrations UNTIL you’re left with the migration specified. Thus, if you use GET-MIGRATIONS and you find that you have A, B, C, D, and E, then using this command will rollback … Read more

Use one Laravel migrations table per database

Article on usage of multiple database usage in Laravel – https://stackcoder.in/posts/laravel-7x-multiple-database-connections-migrations-relationships-querying Use the –database parameter with the migrate command and store the migrations for each database in separate directories. You could have separate directories in app/database/migrations for each of your database (in your case db1 and db2) and store the appropriate migrations in each directory. … Read more

How do I copy SQL Azure database to my local development server?

There are multiple ways to do this: Using SSIS (SQL Server Integration Services). It only imports data in your table. Column properties, constraints, keys, indices, stored procedures, triggers, security settings, users, logons, etc. are not transferred. However it is very simple process and can be done simply by going through wizard in SQL Server Management … Read more

Access denied for user ‘homestead’@’localhost’ (using password: YES)

The reason of Access denied for user ‘homestead’@’localhost’ laravel 5 error is caching-issue of the .env.php file cause Laravel 5 is using environment based configuration in your .env file. 1. Go to your application root directory and open .env file (In ubuntu may be it’s hidden so press ctrl+h to show hidden files & if … Read more