diff --git a/.github/workflows/rebuild-db.yaml b/.github/workflows/rebuild-db.yaml index fe47b43a8..3232bbe96 100644 --- a/.github/workflows/rebuild-db.yaml +++ b/.github/workflows/rebuild-db.yaml @@ -46,7 +46,7 @@ jobs: cf_password: ${{ secrets[env.CF_PASSWORD] }} cf_org: cisa-dotgov cf_space: ${{ github.event.inputs.environment }} - cf_command: "run-task getgov-${{ github.event.inputs.environment }} --command 'python manage.py drop_tables --no-input' --name flush" + cf_command: "run-task getgov-${{ github.event.inputs.environment }} --command 'python manage.py drop_tables' --name flush" - name: Run Django migrations for ${{ github.event.inputs.environment }} uses: cloud-gov/cg-cli-tools@main diff --git a/src/registrar/management/commands/drop_tables.py b/src/registrar/management/commands/drop_tables.py index 1a5a40ee0..e4d18f576 100644 --- a/src/registrar/management/commands/drop_tables.py +++ b/src/registrar/management/commands/drop_tables.py @@ -1,10 +1,6 @@ import logging from django.conf import settings from django.core.management import BaseCommand -from django.apps import apps -from django.db import connection, transaction - -from registrar.management.commands.utility.terminal_helper import TerminalHelper logger = logging.getLogger(__name__)