School Commit Init

This commit is contained in:
2024-08-31 12:07:21 +03:00
commit 0b130ee18c
2801 changed files with 4720552 additions and 0 deletions
@@ -0,0 +1,29 @@
USE "Gwent - The Witcher Card Game"
GO
CREATE OR ALTER PROCEDURE populateFactions (@rows INT) AS
WHILE @rows > 0
BEGIN
INSERT INTO Factions(name, totalMatches, totalWins, totalLosses, totalCards, totalDraws)
VALUES ('test', -1, -1, -1, -1, -1)
SET @rows = @rows - 1
END
GO
CREATE OR ALTER VIEW getNameAndTotalMatches AS
SELECT name, totalMatches
FROM Factions
GO
EXEC addTests 'test1'
EXEC addToTables 'Factions'
EXEC addToViews 'getNameAndTotalMatches'
EXEC addTestTables 'test1', 'Factions', 1000, 1
EXEC addTestViews 'test1', 'getNameAndTotalMatches'
GO
EXEC runTest 'test1'