Created
March 5, 2020 10:43
-
-
Save dedunumax/931e113b341cad572f742bfbbd5c670d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
LOAD DATABASE | |
FROM mysql://root:[email protected]/real_db | |
INTO pgsql://postgres:[email protected]/adventure_db | |
WITH include drop, create tables | |
SET search_path to 'public' | |
INCLUDING ONLY TABLE NAMES MATCHING 'user' | |
ALTER TABLE NAMES MATCHING 'user' RENAME TO 'account' | |
ALTER SCHEMA 'real_db' RENAME TO 'public'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment