Skip to content

Instantly share code, notes, and snippets.

@vinijmoura
Created February 8, 2022 12:04
Show Gist options
  • Save vinijmoura/c99d19050be246953379abf340c4535a to your computer and use it in GitHub Desktop.
Save vinijmoura/c99d19050be246953379abf340c4535a to your computer and use it in GitHub Desktop.
CREATE TABLE [dbo].[RepositoriesBranchProtectionRules](
RepositoryId [varchar](20) NOT NULL,
RepositoryName [varchar](100) NOT NULL,
RepositoryURL [varchar](300) NOT NULL,
DefaultBranch [varchar](50) NOT NULL,
RequiredSignatures [bit] NOT NULL,
EnforceAdmins [bit] NOT NULL,
RequiredLinearHistory [bit] NOT NULL,
AllowForcePushes [bit] NOT NULL,
AllowDeletions [bit] NOT NULL,
RequiredConversationResolution [bit] NOT NULL,
RequiredPullRequestReviews [bit] NOT NULL,
RequiredStatusChecks [bit] NOT NULL,
Restrictions [bit] NOT NULL,
CONSTRAINT [PK_RepositoriesBranchProtectionRules] PRIMARY KEY CLUSTERED
(
[RepositoryId] ASC
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
)
GO
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment