8 lines
451 B
Transact-SQL
8 lines
451 B
Transact-SQL
-- LosaDev 2019: the 15-character key the game server reads at start (define_encode_key,
|
|
-- game_encode_get_fix_key). setup-db.bat asks for it (ENCODE_KEY).
|
|
USE [LosaGame]
|
|
GO
|
|
IF LEN(N'$(ENCODE_KEY)') <> 15 RAISERROR('ENCODE_KEY must be 15 characters', 16, 1)
|
|
ELSE IF NOT EXISTS (SELECT 1 FROM dbo.define_encode_key WHERE encodeKey = '$(ENCODE_KEY)')
|
|
INSERT INTO dbo.define_encode_key (encodeKey, regDate) VALUES ('$(ENCODE_KEY)', GETDATE())
|
|
GO |