equal
deleted
inserted
replaced
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) |