Skip to content

Commit

Permalink
Add PK to the create table statement. (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
jadarnel27 authored Jul 4, 2018
1 parent 7859110 commit 7e5c00e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/GetSqlServerVersionInfo/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,14 @@ [Url] varchar(99) not null,
MainstreamSupportEndDate date not null,
ExtendedSupportEndDate date not null,
MajorVersionName varchar(19) not null,
MinorVersionName varchar(67) not null
MinorVersionName varchar(67) not null,
CONSTRAINT PK_SqlServerVersions PRIMARY KEY CLUSTERED
(
MajorVersionNumber ASC,
MinorVersionNumber ASC,
ReleaseDate ASC
)
);");
sqlScript.Append(@"
insert into dbo.SqlServerVersions
Expand Down

0 comments on commit 7e5c00e

Please sign in to comment.