Browse Source

Added initialization script for migrating existing users for new password storage.

pull/29/head
Teknikode 6 years ago
parent
commit
aedbaca154
  1. 20
      Teknik/Migrations/InitializeTransfers.sql

20
Teknik/Migrations/InitializeTransfers.sql

@ -0,0 +1,20 @@ @@ -0,0 +1,20 @@
-- Add SHA256 Transfers
INSERT INTO TransferTypeUsers
SELECT '1', UserId
FROM Users
WHERE TransferAccount = 'True'
-- Add Case Sensitive Transfers
INSERT INTO TransferTypeUsers
SELECT '2', UserId
FROM Users
-- Add ASCII Transfers
INSERT INTO TransferTypeUsers
SELECT '3', UserId
FROM Users
INSERT INTO TransferTypePastes
SELECT '3', PasteId
FROM Pastes
WHERE HashedPassword IS NOT NULL
Loading…
Cancel
Save