<s> from __future__ import unicode_literals <EOL> from django . conf import settings <EOL> from django . db import migrations , models , connection <EOL> def migrate_customers ( apps , schema_editor ) : <EOL> cursor = connection . cursor ( ) <EOL> if "<STR_LIT>" in connection . introspection . table_names ( ) : <EOL> cursor . execute ( "<STR_LIT>" ) <EOL> Customer = apps . get_model ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> for row in cursor . fetchall ( ) : <EOL> Customer . objects . create ( <EOL> user_id = row [ <NUM_LIT:0> ] , <EOL> stripe_id = row [ <NUM_LIT:1> ] , <EOL> date_purged = row [ <NUM_LIT:2> ] <EOL> ) <EOL> class Migration ( migrations . Migration ) : <EOL> dependencies = [ <EOL> migrations . swappable_dependency ( settings . AUTH_USER_MODEL ) , <EOL> ( '<STR_LIT>' , '<STR_LIT>' ) , <EOL> ] <EOL> operations = [ <EOL> migrations . RunPython ( migrate_customers ) <EOL> ] </s>
