This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE [dbo].[ReleaseDefinitionsTasks]( | |
[TeamProjectName] [varchar](100) NULL, | |
[ReleaseDefinitionId] [varchar](40) NULL, | |
[ReleaseDefinitionName] [varchar](150) NULL, | |
[ReleaseDefinitionEnvironmentName] [varchar](150) NULL, | |
[ReleaseDefinitionPhaseName] [varchar](150) NULL, | |
[ReleaseDefintionTaskId] [varchar](40) NULL, | |
[ReleaseDefintionTaskName] [varchar](150) NULL, | |
[ReleaseDefintionTaskversion] [varchar](30) NULL | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Param | |
( | |
[string]$PAT, | |
[string]$Organization, | |
[string]$Connstr | |
) | |
$SQLQuery = "TRUNCATE TABLE ReleaseDefinitionsTasks" | |
Invoke-Sqlcmd -query $SQLQuery -ConnectionString $Connstr |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE [dbo].[BuildDefinitionsTasks]( | |
[TeamProjectName] [varchar](100) NULL, | |
[BuildDefinitionId] [varchar](40) NULL, | |
[BuildDefinitionName] [varchar](150) NULL, | |
[BuildDefinitionPhaseName] [varchar](150) NULL, | |
[BuildDefintionTaskId] [varchar](40) NULL, | |
[BuildDefintionTaskName] [varchar](150) NULL, | |
[BuildDefintionTaskversionSpec] [varchar](30) NULL | |
) | |
GO |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Param | |
( | |
[string]$PAT, | |
[string]$Organization, | |
[string]$Connstr | |
) | |
$SQLQuery = "TRUNCATE TABLE BuildDefinitionsTasks" | |
Invoke-Sqlcmd -query $SQLQuery -ConnectionString $Connstr |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE [dbo].[ServiceHooks]( | |
[ProjectName] [varchar](200) NULL, | |
[eventDescription] [nvarchar](max) NULL, | |
[eventType] [varchar](100) NULL, | |
[publisherId] [varchar](200) NULL, | |
[consumerId] [varchar](200) NULL, | |
[consumerActionId] [nvarchar](max) NULL, | |
[actionDescription] [nvarchar](max) NULL, | |
[createdBy] [varchar](100) NULL | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Param | |
( | |
[string]$PAT, | |
[string]$Organization, | |
[string]$Connstr | |
) | |
$SQLQuery = "TRUNCATE TABLE ServiceHooks" | |
Invoke-Sqlcmd -query $SQLQuery -ConnectionString $Connstr |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE [dbo].[PersonalAccessTokens]( | |
[UserDisplayName] [varchar](200) NULL, | |
[UserMailAddress] [varchar](200) NULL, | |
[PATDisplayName] [varchar](200) NULL, | |
[PATValidFrom] [DATETIME] NULL, | |
[PATValidTo] [DATETIME] NULL, | |
[PATScope] [nvarchar](MAX) NULL | |
) | |
GO |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Param | |
( | |
[string]$PAT, | |
[string]$Organization, | |
[string]$Connstr | |
) | |
$SQLQuery = "TRUNCATE TABLE PersonalAccessTokens" | |
Invoke-Sqlcmd -query $SQLQuery -ConnectionString $Connstr |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE [dbo].[ProjectStats]( | |
[TeamProjectName] [varchar](200) NOT NULL, | |
[TeamProjectCountWorkItemCreated] [smallint] NOT NULL, | |
[TeamProjectCountWorkItemCompleted] [smallint] NOT NULL, | |
[TeamProjectCountCommitsPushed] [smallint] NOT NULL, | |
[TeamProjectCountPRsCreated] [smallint] NOT NULL, | |
[TeamProjectCountPRsCompleted] [smallint] NOT NULL, | |
[TeamProjectCountBuilds] [smallint] NOT NULL, | |
[TeamProjectCountReleases] [smallint] NOT NULL | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Param | |
( | |
[string]$PAT, | |
[string]$Organization, | |
[string]$Connstr | |
) | |
$SQLQuery = "TRUNCATE TABLE ProjectStats" | |
Invoke-Sqlcmd -query $SQLQuery -ConnectionString $Connstr |