Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions src/Database/Prototype/migrate-old-data.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
-- Author: DENIS PROKHORCHIK
-- Date: 06/01/2022

-- Create temp table of Certificates
CREATE TABLE #TempCertificates
(
Id UNIQUEIDENTIFIER,
added_date bigint
);

-- Create temp table of Users
CREATE TABLE #TempUsers
(
Id UNIQUEIDENTIFIER
)

-- Select a data of old Certificate table
USE [O2Bionics.O2Platform.CertificateDB]
SELECT * FROM O2CCertificate

-- Select a data of old Users table
USE [O2Bionics.O2Platform.IdentityDb]
SELECT * FROM AspNetUsers

-- Merge tables

-- Export file to JSON format






-- USE [O2Bionics.O2Platform.CertificateDB]
-- SELECT * FROM O2CCertificate
-- FOR JSON PATH

-- USE [O2Bionics.O2Platform.IdentityDb]
-- SELECT * FROM AspNetUsers

-- select * from Photos