Created
December 11, 2015 14:01
-
-
Save karenc/0d8ea492300a34c4bedd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
COPY (SELECT ROW_NUMBER() OVER (ORDER BY id), | |
username, | |
'{SSHA}RmBlDXdkdJaQkDsr790+eKaY9xHQdPVNwD/B' AS password_digest, -- ssha hash for "password" | |
SUBSTR(title, 0, 255) AS title, -- accounts db uses varchar(255) | |
SUBSTR(first_name, 0, 255) AS first_name, | |
SUBSTR(last_name, 0, 255) AS last_name, | |
SUBSTR(full_name, 0, 255) AS full_name, | |
username || '@e-mail-tester.appspotmail.com' AS email_address FROM users) TO STDOUT DELIMITER ',' CSV HEADER; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment