5 changed files with 13 additions and 41 deletions
@ -1,23 +0,0 @@
@@ -1,23 +0,0 @@
|
||||
using System; |
||||
using System.IO; |
||||
|
||||
namespace Bit.Setup |
||||
{ |
||||
public class AppSettingsBuilder |
||||
{ |
||||
public void Build() |
||||
{ |
||||
Console.WriteLine("Building app settings."); |
||||
Directory.CreateDirectory("/bitwarden/web/"); |
||||
using(var sw = File.CreateText("/bitwarden/web/settings.js")) |
||||
{ |
||||
sw.Write($@"var bitwardenAppSettings = {{
|
||||
iconsUri: ""/icons"", |
||||
stripeKey: null, |
||||
braintreeKey: null, |
||||
selfHosted: true |
||||
}};");
|
||||
} |
||||
} |
||||
} |
||||
} |
||||
@ -0,0 +1,9 @@
@@ -0,0 +1,9 @@
|
||||
IF NOT EXISTS ( |
||||
SELECT * FROM sys.indexes WHERE [Name]='IX_User_Premium_PremiumExpirationDate_RenewalReminderDate' |
||||
AND object_id = OBJECT_ID('[dbo].[User]') |
||||
) |
||||
BEGIN |
||||
CREATE NONCLUSTERED INDEX [IX_User_Premium_PremiumExpirationDate_RenewalReminderDate] |
||||
ON [dbo].[User]([Premium] ASC, [PremiumExpirationDate] ASC, [RenewalReminderDate] ASC) |
||||
END |
||||
GO |
||||
Loading…
Reference in new issue