mirror of
https://github.com/ansible/awx.git
synced 2026-04-07 02:59:21 -02:30
When copying main_jobevent, include all table metadata
* copy the table just like we do in the bigint migration * without this we lose sequences and very likely other things as well * we want the new table to be identical to the old table, so 'including all' makes sense
This commit is contained in:
@@ -40,7 +40,7 @@ def migrate_event_data(apps, schema_editor):
|
|||||||
# hacky creation of parent table for partition
|
# hacky creation of parent table for partition
|
||||||
cursor.execute(
|
cursor.execute(
|
||||||
f'CREATE TABLE {tblname} '
|
f'CREATE TABLE {tblname} '
|
||||||
f'(LIKE {tblname}_old, job_created TIMESTAMP WITH TIME ZONE NOT NULL) '
|
f'(LIKE {tblname}_old INCLUDING ALL, job_created TIMESTAMP WITH TIME ZONE NOT NULL) '
|
||||||
f'PARTITION BY RANGE(job_created);'
|
f'PARTITION BY RANGE(job_created);'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user