squash a bunch of commits
This commit is contained in:
13
Shogi.Database/Post Deployment/Script.PostDeployment.sql
Normal file
13
Shogi.Database/Post Deployment/Script.PostDeployment.sql
Normal file
@@ -0,0 +1,13 @@
|
||||
/*
|
||||
Post-Deployment Script Template
|
||||
--------------------------------------------------------------------------------------
|
||||
This file contains SQL statements that will be appended to the build script.
|
||||
Use SQLCMD syntax to include a file in the post-deployment script.
|
||||
Example: :r .\myfile.sql
|
||||
Use SQLCMD syntax to reference a variable in the post-deployment script.
|
||||
Example: :setvar TableName MyTable
|
||||
SELECT * FROM [$(TableName)]
|
||||
--------------------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
:r .\Scripts\PopulateLoginPlatforms.sql
|
||||
@@ -0,0 +1,16 @@
|
||||
|
||||
DECLARE @LoginPlatforms TABLE (
|
||||
[Platform] NVARCHAR(20)
|
||||
)
|
||||
|
||||
INSERT INTO @LoginPlatforms ([Platform])
|
||||
VALUES
|
||||
('Guest'),
|
||||
('Microsoft');
|
||||
|
||||
MERGE [user].[LoginPlatform] as t
|
||||
USING @LoginPlatforms as s
|
||||
ON t.[Platform] = s.[Platform]
|
||||
WHEN NOT MATCHED THEN
|
||||
INSERT ([Platform])
|
||||
VALUES (s.[Platform]);
|
||||
Reference in New Issue
Block a user