create, read, playercount

This commit is contained in:
2022-11-09 16:08:04 -06:00
parent a1f996e508
commit da76917490
37 changed files with 999 additions and 814 deletions

View File

@@ -10,4 +10,5 @@ Post-Deployment Script Template
--------------------------------------------------------------------------------------
*/
:r .\Scripts\PopulateLoginPlatforms.sql
:r .\Scripts\PopulateLoginPlatforms.sql
:r .\Scripts\PopulatePieces.sql

View File

@@ -0,0 +1,2 @@
ALTER DATABASE Shogi
SET ALLOW_SNAPSHOT_ISOLATION ON

View File

@@ -0,0 +1,21 @@
DECLARE @Pieces TABLE(
[Name] NVARCHAR(13)
)
INSERT INTO @Pieces ([Name])
VALUES
('King'),
('GoldGeneral'),
('SilverGeneral'),
('Bishop'),
('Rook'),
('Knight'),
('Lance'),
('Pawn');
MERGE [session].[Piece] as t
USING @Pieces as s
ON t.[Name] = s.[Name]
WHEN NOT MATCHED THEN
INSERT ([Name])
VALUES (s.[Name]);