Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Generated by Django 3.2.24 on 2024-02-09 14:32

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
('cleanup', '0015_deletedcouchdoc_unique_id_and_type'),
]

operations = [
migrations.RunSQL("""
DROP TABLE IF EXISTS "oauth_integrations_googleapitoken" CASCADE;
DROP TABLE IF EXISTS "oauth_integrations_livegooglesheetrefreshstatus" CASCADE;
DROP TABLE IF EXISTS "oauth_integrations_livegooglesheetschedule" CASCADE;
"""),
]


"""
Dropped entities can be checked with the following query:

select pg_describe_object(classid, objid, objsubid)
from pg_depend
where refobjid in (
'oauth_integrations_googleapitoken'::regclass,
'oauth_integrations_livegooglesheetrefreshstatus'::regclass,
'oauth_integrations_livegooglesheetschedule'::regclass
);

Example output (from staging, the same as a local dev setup):

type oauth_integrations_livegooglesheetschedule
type oauth_integrations_livegooglesheetrefreshstatus
type oauth_integrations_googleapitoken
toast table pg_toast.pg_toast_2980995
toast table pg_toast.pg_toast_2980982
toast table pg_toast.pg_toast_2892669
sequence oauth_integrations_livegooglesheetschedule_id_seq
sequence oauth_integrations_livegooglesheetrefreshstatus_id_seq
sequence oauth_integrations_googleapitoken_id_seq
index oauth_integrations_livegoo_schedule_id_064aa4f4
index oauth_integrations_livegoo_export_config_id_200127ab
index oauth_integrations_liveg_export_config_id_200127ab_like
index oauth_integrations_googleapitoken_user_id_9d01255f
default value for column id of table oauth_integrations_livegooglesheetschedule
default value for column id of table oauth_integrations_livegooglesheetrefreshstatus
default value for column id of table oauth_integrations_googleapitoken
constraint oauth_integrations_livegooglesheetschedule_pkey on table oauth_integrations_livegooglesheetschedule
constraint oauth_integrations_livegooglesheetrefreshstatus_pkey on table oauth_integrations_livegooglesheetrefreshstatus
constraint oauth_integrations_l_schedule_id_064aa4f4_fk_oauth_int on table oauth_integrations_livegooglesheetrefreshstatus
constraint oauth_integrations_googleapitoken_pkey on table oauth_integrations_googleapitoken
constraint oauth_integrations_g_user_id_9d01255f_fk_auth_user on table oauth_integrations_googleapitoken
"""
1 change: 0 additions & 1 deletion corehq/apps/domain/tests/test_deletion_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
'telerivet',
'toggle_ui',
'sso',
'oauth_integrations',
}

IGNORE_MODELS = {
Expand Down
3 changes: 0 additions & 3 deletions corehq/apps/dump_reload/tests/test_dump_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,6 @@
"oauth2_provider.Grant",
"oauth2_provider.IDToken",
"oauth2_provider.RefreshToken",
"oauth_integrations.GoogleApiToken",
"oauth_integrations.LiveGoogleSheetRefreshStatus",
"oauth_integrations.LiveGoogleSheetSchedule",
"registration.AsyncSignupRequest",
"registration.RegistrationRequest",
"reminders.EmailUsage",
Expand Down
Empty file.
26 changes: 0 additions & 26 deletions corehq/apps/oauth_integrations/migrations/0001_initial.py

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Empty file.
43 changes: 0 additions & 43 deletions corehq/apps/oauth_integrations/models.py

This file was deleted.

Empty file.
89 changes: 0 additions & 89 deletions corehq/apps/oauth_integrations/tests/test_util.py

This file was deleted.

Loading