Skip to content

Commit

Permalink
#24 Undo file change.
Browse files Browse the repository at this point in the history
  • Loading branch information
David Lievrouw authored and David Lievrouw committed Jan 25, 2021
1 parent c421751 commit f39fd4a
Showing 1 changed file with 0 additions and 65 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,68 +18,3 @@ CREATE TABLE [dbo].[Clients] (
CONSTRAINT [PK_Clients] PRIMARY KEY CLUSTERED ([Id] ASC)
)
GO

CREATE TABLE [dbo].[ClientClaims](
[ClientId] [nvarchar](100) NOT NULL,
[Type] [nvarchar](100) NOT NULL,
[Value] [nvarchar](100) NOT NULL,
[Issuer] [nvarchar](100) NOT NULL,
[OriginalIssuer] [nvarchar](100) NOT NULL,
[ValueType] [nvarchar](100) NOT NULL
)
GO

ALTER TABLE [dbo].[ClientClaims] WITH CHECK ADD CONSTRAINT [FK_ClientClaims_Clients] FOREIGN KEY([ClientId])
REFERENCES [dbo].[Clients] ([Id])
ON UPDATE CASCADE
ON DELETE CASCADE
GO

ALTER TABLE [dbo].[ClientClaims] CHECK CONSTRAINT [FK_ClientClaims_Clients]
GO

CREATE TABLE [dbo].[ClientMigrations] (
[Id] [nvarchar](100) NOT NULL,
[StepName] [nvarchar](100) NOT NULL,
[Time] [datetimeoffset](3) NOT NULL,
[MigratorVersion] [nvarchar](20) NOT NULL,
CONSTRAINT [PK_ClientMigrations] PRIMARY KEY CLUSTERED([Id] ASC)
)
GO

CREATE TABLE [dbo].[Nonces] (
[Id] [int] IDENTITY(1,1) NOT NULL,
[ClientId] [nvarchar](100) NOT NULL,
[Value] [nvarchar](36) NOT NULL,
[Expiration] [datetimeoffset](3) NOT NULL,
[V] [tinyint] NOT NULL,
CONSTRAINT [PK_Nonces] PRIMARY KEY CLUSTERED([Id] ASC)
)
GO

IF EXISTS (SELECT [name] FROM sys.indexes WHERE [name] = N'IX_Expiration')
DROP INDEX IX_Expiration ON [dbo].[Nonces];
GO

CREATE NONCLUSTERED INDEX IX_Expiration
ON [dbo].[Nonces] ([Expiration]);

GO

IF EXISTS (SELECT [name] FROM sys.indexes WHERE [name] = N'IX_Client_Value')
DROP INDEX IX_Client_Value ON [dbo].[Nonces];
GO

CREATE UNIQUE NONCLUSTERED INDEX IX_Client_Value
ON [dbo].[Nonces] ([ClientId], [Value]);

GO

CREATE TABLE [dbo].[NonceMigrations] (
[Id] [nvarchar](100) NOT NULL,
[StepName] [nvarchar](100) NOT NULL,
[Time] [datetimeoffset](3) NOT NULL,
[MigratorVersion] [nvarchar](20) NOT NULL,
CONSTRAINT [PK_NonceMigrations] PRIMARY KEY CLUSTERED([Id] ASC)
)
GO

0 comments on commit f39fd4a

Please sign in to comment.