Fares Ayyad

Fares Ayyad

  • NA
  • 36
  • 4.2k

Run Code-first update-database gives an error against GoDadd

Apr 22 2017 7:24 AM

I have a web hosting and i upload my entire project throw FTP to GoDaddy but i stuck when i change the connection string of my project to one in the server the i run Update-database in package-manager i get a migration error for one of the migrations telling that cannot insert null in column.

I tried to use a generated script using this command: Update-Database -Script -SourceMigration:0I don't know if this command is the right command!!

now i don't know what to do? all things works fine in my local machine and with my local connection string what can i do to run the migrations in the right way ?


Answers (1)