Browse Source

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

tags/2.0.3
Teknikode 4 years ago
parent
commit
aedbaca154
1 changed files with 20 additions and 0 deletions
  1. 20
    0
      Teknik/Migrations/InitializeTransfers.sql

+ 20
- 0
Teknik/Migrations/InitializeTransfers.sql View File

@@ -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