Last active
January 29, 2022 21:29
-
-
Save hmboyd/195755d07078ad16b15364c3c2e75548 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
INSERT INTO new_db.lettings_letting(id,title,address_id) SELECT id,title,address_id FROM oc_lettings_site_letting; | |
INSERT INTO new_db.profiles_profile(id,favorite_city,user_id) SELECT id,favorite_city,user_id FROM oc_lettings_site_profile; | |
INSERT INTO new_db.lettings_address(id,number,street,city,state,zip_code,country_iso_code) SELECT id,number,street,city,state,zip_code,country_iso_code FROM oc_lettings_site_address; | |
INSERT INTO new_db.auth_user(id,password,last_login,is_superuser,username,first_name,email,is_staff,is_active,date_joined,last_name) SELECT id,password,last_login,is_superuser,username,first_name,email,is_staff,is_active,date_joined,last_name FROM auth_user | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment