EF5 Migrations - Duplicate/Re-defined variable bug when dropping constraints | Issue with usage of SQL GO command

前端 未结 4 1605
灰色年华
灰色年华 2021-01-04 01:37

Background:

We have a project that uses ef-migrations containing multiple (read ~60) migrations created over a long period of development. Naturally, some of these

4条回答
  •  长情又很酷
    2021-01-04 01:59

    Just delete all the repetitions of this line:

    DECLARE @var0 nvarchar(128)
    

    Only the first declaration is sufficient. Your script will work smoothly! :)

提交回复
热议问题