create, read, playercount
This commit is contained in:
@@ -10,4 +10,5 @@ Post-Deployment Script Template
|
||||
--------------------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
:r .\Scripts\PopulateLoginPlatforms.sql
|
||||
:r .\Scripts\PopulateLoginPlatforms.sql
|
||||
:r .\Scripts\PopulatePieces.sql
|
||||
@@ -0,0 +1,2 @@
|
||||
ALTER DATABASE Shogi
|
||||
SET ALLOW_SNAPSHOT_ISOLATION ON
|
||||
21
Shogi.Database/Post Deployment/Scripts/PopulatePieces.sql
Normal file
21
Shogi.Database/Post Deployment/Scripts/PopulatePieces.sql
Normal 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]);
|
||||
Reference in New Issue
Block a user