SeedData.DEV.sql 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. /*
  2. Post-Deployment Script Template
  3. --------------------------------------------------------------------------------------
  4. This file contains SQL statements that will be appended to the build script.
  5. Use SQLCMD syntax to include a file in the post-deployment script.
  6. Example: :r .\myfile.sql
  7. Use SQLCMD syntax to reference a variable in the post-deployment script.
  8. Example: :setvar TableName MyTable
  9. SELECT * FROM [$(TableName)]
  10. --------------------------------------------------------------------------------------
  11. */
  12. /* STATUS VALUES
  13. 1 - Awaiting Processing
  14. 2 - In Process
  15. 3 - Complete
  16. 4 - Error
  17. 5 - Error rolling back (removing label)
  18. */
  19. -- GLOBAL CONFIG --
  20. SET IDENTITY_INSERT [GlobalConfig] ON
  21. INSERT INTO [GlobalConfig]
  22. (Id, [Key], [Value])
  23. VALUES
  24. (1, 'MaxRetries', '5'),
  25. (2, 'AADWebAppId', 'AAD-web-app-guid-here'),
  26. (3, 'AADWebAppKey', 'encrypted-AAD-key-here'),
  27. (4, 'AADNativeAppId', 'AAD-native-app-guid-here'),
  28. (5, 'AADToken', 'token'),
  29. (6, 'MinDocAgeDays', '365')
  30. SET IDENTITY_INSERT [GlobalConfig] OFF
  31. -- LABELS --
  32. SET IDENTITY_INSERT [Labels] ON
  33. INSERT INTO [Labels]
  34. (Id, LabelName, LabelGuid)
  35. VALUES
  36. (1, 'Public', 'label-guid-here'),
  37. (2, 'Restricted', 'label-guid-here'),
  38. (4, 'Confidential', 'label-guid-here'),
  39. (5, 'Secret', 'label-guid-here')
  40. SET IDENTITY_INSERT [Labels] OFF
  41. -- SERVERS --
  42. SET IDENTITY_INSERT [Servers] ON
  43. INSERT INTO [Servers]
  44. (Id, ServerName, StartTime, EndTime, NumberInstances, ServerComplete, IsActive)
  45. VALUES
  46. (1, 'EXECUTING-SERVER-NAME', '09:00:00', '17:00:00', 1, 0, 1)
  47. SET IDENTITY_INSERT [Servers] OFF
  48. -- FILE SERVERS --
  49. SET IDENTITY_INSERT [FileServers] ON
  50. INSERT INTO [FileServers]
  51. (Id, FileServer, BJPCStartDate, BJPCEndDate)
  52. VALUES
  53. (1, 'FILESERVER-X', '2018-08-06', '2018-08-10'),
  54. (2, 'FILESERVER-Y', '2018-09-06', '2018-09-10')
  55. SET IDENTITY_INSERT [FileServers] OFF
  56. -- SERVERS - FILE SERVERS --
  57. INSERT INTO [ServersFileServers]
  58. (ServerId, FileServerId)
  59. VALUES
  60. (1, 1),
  61. (1, 2)
  62. -- STATUS CODES --
  63. INSERT INTO [StatusCodes] (Status) VALUES
  64. ('NotStarted'),('InProgress'),('SuccessfulEncrypt'),('EncryptError'),('FailedDecrypt'),('WillNotEncrypt'),('NotFound'), ('UnderMinAge')