Skip to content

Cannot migrate Azure SQL IdentityServer database from 6.3.8 to 7.1.0 #21

Discussion options

You must be logged in to vote

I have not been able to merge the two versions, as another of our team was already using it. Instead I choose to work with a temporary table and drop / re-create the ServerSideSession table.
This works for us:

migrationBuilder.Sql("SELECT [Id], [Key], [Scheme], [SubjectId], [SessionId], [DisplayName], [Created], [Renewed], [Expires], [Data] INTO TempServerSideSessions FROM ServerSideSessions");
migrationBuilder.Sql("DROP TABLE ServerSideSessions");

migrationBuilder.CreateTable(
	name: "ServerSideSessions",
	columns: table => new
	{
		// datatype changed from int to bigint
		Id = table.Column<long>(type: "bigint", nullable: false)
			.Annotation("SqlServer:Identity", "1, 1"),
		Key = table.

Replies: 0 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by maartenba
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants