<s> import sqlite3 <EOL> def migrate ( database_path ) : <EOL> print "<STR_LIT>" <EOL> conn = sqlite3 . connect ( database_path ) <EOL> conn . text_factory = str <EOL> cursor = conn . cursor ( ) <EOL> cursor . execute ( '''<STR_LIT>''' ) <EOL> notifications = cursor . fetchall ( ) <EOL> cursor . execute ( '''<STR_LIT>''' ) <EOL> cursor . execute ( '''<STR_LIT>''' ) <EOL> cursor . execute ( '''<STR_LIT>''' ) <EOL> for n in notifications : <EOL> cursor . execute ( '''<STR_LIT>''' , ( n [ <NUM_LIT:0> ] , n [ <NUM_LIT:1> ] , n [ <NUM_LIT:2> ] , n [ <NUM_LIT:3> ] , n [ <NUM_LIT:4> ] , n [ <NUM_LIT:5> ] , n [ <NUM_LIT:6> ] , n [ <NUM_LIT:7> ] , n [ <NUM_LIT:8> ] ) ) <EOL> cursor . execute ( '''<STR_LIT>''' ) <EOL> conn . commit ( ) <EOL> conn . close ( ) </s>
