misc/migration/bootstrapmigration_repository.py
changeset 9708 b36bc18f6ef7
parent 9585 3f5b59527d31
child 10015 57a16bef82c0
child 10058 d47c318f95b2
equal deleted inserted replaced
9707:4a23058e4d9f 9708:b36bc18f6ef7
    48     cursor.execute(dbh.sql_create_numrange('entities_id_seq'))
    48     cursor.execute(dbh.sql_create_numrange('entities_id_seq'))
    49     cursor.execute(dbh.sql_restart_numrange('entities_id_seq', initial_value=lasteid))
    49     cursor.execute(dbh.sql_restart_numrange('entities_id_seq', initial_value=lasteid))
    50     session.commit()
    50     session.commit()
    51 
    51 
    52 if applcubicwebversion < (3, 19, 0) and cubicwebversion >= (3, 19, 0):
    52 if applcubicwebversion < (3, 19, 0) and cubicwebversion >= (3, 19, 0):
       
    53     sql('ALTER TABLE "entities" DROP COLUMN "mtime"')
       
    54     sql('ALTER TABLE "entities" DROP COLUMN "source"')
       
    55 
       
    56     commit()
       
    57 
    53     replace_eid_sequence_with_eid_numrange(session)
    58     replace_eid_sequence_with_eid_numrange(session)
    54 
    59 
    55 if applcubicwebversion < (3, 17, 0) and cubicwebversion >= (3, 17, 0):
    60 if applcubicwebversion < (3, 17, 0) and cubicwebversion >= (3, 17, 0):
    56     try:
    61     try:
    57         add_cube('sioc', update_database=False)
    62         add_cube('sioc', update_database=False)