I had the same problem with bug table constraints so I removed that block but now I've got a lot more errors:
Adding foreign keys to [dbo].[Bug]
Msg 547, Level 16, State 0, Line 1
ALTER TABLE statement conflicted with COLUMN FOREIGN KEY constraint 'FK_Bug_Component'. The conflict occurred in database 'bugnet', table 'Component', column 'ComponentID'.
(1 row(s) affected)
Adding foreign keys to [dbo].[RolePermission]
Msg 1767, Level 16, State 0, Line 1
Foreign key 'FK_RolePermission_Roles' references invalid table 'dbo.Roles'.
Msg 1750, Level 16, State 0, Line 1
Could not create constraint. See previous errors.
(1 row(s) affected)
Adding foreign keys to [dbo].[BugComment]
Msg 1785, Level 16, State 0, Line 1
Introducing FOREIGN KEY constraint 'FK_BugComment_Bug' on table 'BugComment' may cause cycles or multiple cascade paths. Specify ON DELETE NO ACTION or ON UPDATE NO ACTION, or modify other FOREIGN KEY constraints.
Msg 1750, Level 16, State 0, Line 1
Could not create constraint. See previous errors.
(1 row(s) affected)
Adding foreign keys to [dbo].[UserRoles]
Msg 4902, Level 16, State 1, Line 1
Cannot alter table 'dbo.UserRoles' because this table does not exist in database 'bugnet'.
(1 row(s) affected)
Adding foreign keys to [dbo].[ProjectCustomFields]
Msg 1785, Level 16, State 0, Line 1
Introducing FOREIGN KEY constraint 'FK_ProjectCustomFields_Project' on table 'ProjectCustomFields' may cause cycles or multiple cascade paths. Specify ON DELETE NO ACTION or ON UPDATE NO ACTION, or modify other FOREIGN KEY constraints.
Msg 1750, Level 16, State 0, Line 1
Could not create constraint. See previous errors.
(1 row(s) affected)
Adding foreign keys to [dbo].[BugNotification]
Msg 1785, Level 16, State 0, Line 1
Introducing FOREIGN KEY constraint 'FK_BugNotification_Bug' on table 'BugNotification' may cause cycles or multiple cascade paths. Specify ON DELETE NO ACTION or ON UPDATE NO ACTION, or modify other FOREIGN KEY constraints.
Msg 1750, Level 16, State 0, Line 1
Could not create constraint. See previous errors.
(1 row(s) affected)
Adding foreign keys to [dbo].[RelatedBug]
Msg 1785, Level 16, State 0, Line 1
Introducing FOREIGN KEY constraint 'FK_RelatedBug_Bug' on table 'RelatedBug' may cause cycles or multiple cascade paths. Specify ON DELETE NO ACTION or ON UPDATE NO ACTION, or modify other FOREIGN KEY constraints.
Msg 1750, Level 16, State 0, Line 1
Could not create constraint. See previous errors.
(1 row(s) affected)
Adding foreign keys to [dbo].[ProjectCustomFieldValues]
Msg 1785, Level 16, State 0, Line 1
Introducing FOREIGN KEY constraint 'FK_ProjectCustomFieldValues_Bug' on table 'ProjectCustomFieldValues' may cause cycles or multiple cascade paths. Specify ON DELETE NO ACTION or ON UPDATE NO ACTION, or modify other FOREIGN KEY constraints.
Msg 1750, Level 16, State 0, Line 1
Could not create constraint. See previous errors.
(1 row(s) affected)
Adding foreign keys to [dbo].[BugHistory]
Msg 1785, Level 16, State 0, Line 1
Introducing FOREIGN KEY constraint 'FK_BugHistory_Bug' on table 'BugHistory' may cause cycles or multiple cascade paths. Specify ON DELETE NO ACTION or ON UPDATE NO ACTION, or modify other FOREIGN KEY constraints.
Msg 1750, Level 16, State 0, Line 1
Could not create constraint. See previous errors.
(1 row(s) affected)
Adding foreign keys to [dbo].[Roles]
Msg 4902, Level 16, State 1, Line 1
Cannot alter table 'dbo.Roles' because this table does not exist in database 'bugnet'.
(1 row(s) affected)
Migrating Adding Roles for Existing Projects
Msg 2812, Level 16, State 62, Line 1
Could not find stored procedure 'BugNet_Role_CreateNewRole'.
Msg 2812, Level 16, State 62, Line 15
Could not find stored procedure 'BugNet_Role_CreateNewRole'.
(1 row(s) affected)
Adding permissions for roles
Msg 208, Level 16, State 1, Line 8
Invalid object name 'Roles'.
(1 row(s) affected)
Updating Host Settings
(1 row(s) affected)
Adding Administrator to Super Users Role
Msg 2812, Level 16, State 62, Line 2
Could not find stored procedure 'dbo.BugNet_Role_AddUserToRole'.
Msg 3903, Level 16, State 1, Line 1
The ROLLBACK TRANSACTION request has no corresponding BEGIN TRANSACTION.