Code review comment for lp:~trb143/openlp/bug-772523

Revision history for this message
Raoul Snyman (raoul-snyman) wrote :

You will need to set the default of the new column, something like this:

110 Column(u'temporary', types.Boolean(), default=False)\
111 .create(table=tables[u'songs'])
        connection = metadata.bind.connect()
        update_statement = tables[u'songs'].update().values(temporary=False)
        connection.execute(update_statement)

« Back to merge proposal