mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 03:10:42 -03: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:
parent
de0b25862b
commit
f70473dc0b
@ -40,7 +40,7 @@ def migrate_event_data(apps, schema_editor):
|
||||
# hacky creation of parent table for partition
|
||||
cursor.execute(
|
||||
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);'
|
||||
)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user