Error while creating db diagram:Cannot insert NULL into column diagram_id

Run the script: 

ALTER table [dbo].[sysdiagrams]
DROP COLUMN [diagram_id]

ALTER table [dbo].[sysdiagrams]
ADD [diagram_id] [int] NOT NULL IDENTITY (1, 1)

原文地址:https://www.cnblogs.com/Langzi127/p/2236919.html