Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete copy tables from production database #679

Closed
Tracked by #1512
petmongrels opened this issue Jan 22, 2024 · 3 comments
Closed
Tracked by #1512

Delete copy tables from production database #679

petmongrels opened this issue Jan 22, 2024 · 3 comments
Assignees

Comments

@petmongrels
Copy link
Contributor

petmongrels commented Jan 22, 2024

Some of these tables may accidentally go another customer when we export, so it is better we remove these tables.

checklist_item_temp, checklist_temp, hd_waste_type, hiren_test_virtual_catchment_address_mapping_table, individual_copy_ck, individual_copy_ihmp, individual_copy, individual_copy_ck, individual_copy_ihmp, program_encounter_copy, program_enrolment_ck, program_enrolment_copy, program_enrolment_ihmp, temp_birth_weight_migration_fix

check and delete whether they are used in reports still

jsscp_month_years, sr_enrolment_year, sr_observations,

Look for additional tables if they have been created since the last time this was checked.

@petmongrels petmongrels converted this from a draft issue Jan 22, 2024
@vinayvenu vinayvenu moved this from New Issues to Ready in Avni Product Apr 12, 2024
@petmongrels
Copy link
Contributor Author

pls take through code review process

@1t5j0y 1t5j0y moved this from Ready to In Progress in Avni Product Apr 19, 2024
@1t5j0y 1t5j0y self-assigned this Apr 19, 2024
@1t5j0y 1t5j0y moved this from In Progress to Code Review Ready in Avni Product Apr 19, 2024
@petmongrels petmongrels moved this from Code Review Ready to In Code Review in Avni Product Apr 19, 2024
@petmongrels
Copy link
Contributor Author

DROP TABLE sr_observations; will not work as it depends on other things. I tried this on local db of one org.

[2024-04-19 14:20:13] [2BP01] ERROR: cannot drop table sr_observations because other objects depend on it
[2024-04-19 14:20:13] Detail: view addiction_details depends on table sr_observations
[2024-04-19 14:20:13] view anemia_status depends on table sr_observations
[2024-04-19 14:20:13] view chronic_sickness depends on table sr_observations
[2024-04-19 14:20:13] view menstrual_disorders depends on table sr_observations
[2024-04-19 14:20:13] view school_going depends on table sr_observations
[2024-04-19 14:20:13] view sickling_result depends on table sr_observations
[2024-04-19 14:20:13] Hint: Use DROP ... CASCADE to drop the dependent objects too.

@petmongrels petmongrels moved this from In Code Review to Code Review with Comments in Avni Product Apr 19, 2024
@1t5j0y 1t5j0y moved this from Code Review with Comments to QA Ready in Avni Product Apr 24, 2024
@petmongrels petmongrels moved this from QA Ready to In QA in Avni Product Apr 30, 2024
@petmongrels petmongrels moved this from In QA to QA Ready in Avni Product Apr 30, 2024
@himeshr himeshr moved this from QA Ready to In QA in Avni Product May 1, 2024
@himeshr himeshr moved this from In QA to Done in Avni Product May 1, 2024
@1t5j0y 1t5j0y moved this from Done to Further Action Required in Avni Product May 2, 2024
@1t5j0y
Copy link
Contributor

1t5j0y commented May 2, 2024

Executed on prod

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

3 participants