old_contents: # -*- coding: utf-8 -*-
  from __future__ import unicode_literals
  
  from django.db import migrations
  
  from corehq.sql_db.operations import RawSQLMigration, HqRunSQL
  
  migrator = RawSQLMigration(('corehq', 'sql_accessors', 'sql_templates'), {})
  
  
  class Migration(migrations.Migration):
  
      dependencies = [
          ('sql_accessors', '0038_save_case_deletion_fields'),
      ]
  
      operations = [
          HqRunSQL(
              "DROP FUNCTION IF EXISTS get_all_cases_modified_since(timestamp with time zone, integer)",
              "SELECT 1"
          ),
          migrator.get_migration('get_all_cases_modified_since_3.sql'),
      ]
  
new_contents: # -*- coding: utf-8 -*-
  from __future__ import unicode_literals
  
  from django.db import migrations
  
  from corehq.sql_db.operations import RawSQLMigration, HqRunSQL
  
  migrator = RawSQLMigration(('corehq', 'sql_accessors', 'sql_templates'), {})
  
  
  class Migration(migrations.Migration):
  
      dependencies = [
          ('sql_accessors', '0039_update_reindex_queries'),
      ]
  
      operations = [
          HqRunSQL(
              "DROP FUNCTION IF EXISTS get_all_cases_modified_since(timestamp with time zone, integer)",
              "SELECT 1"
          ),
          migrator.get_migration('get_all_cases_modified_since_3.sql'),
      ]
  
subject: fix migration dependencies