Created
December 29, 2021 05:26
-
-
Save hmboyd/fdf874e96c02ad35a4f4f82189c9e3d3 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
ADDRESS: | |
INSERT INTO new_db.lettings_address(number,street,city,state,zip_code,country_iso_code) SELECT number, street, city, state, zip_code, country_iso_code FROM oc_lettings_site_address; | |
LETTINGS: | |
INSERT INTO new_db.lettings_letting(id,title,address_id) SELECT id,title,address_id FROM oc_lettings_site_letting; | |
USERS: | |
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; | |
PROFILES: | |
INSERT INTO new_db.profiles_profile(favorite_city,user_id) SELECT favorite_city, user_id FROM oc_lettings_site_profile; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment