Skip to content

Commit 8492943

Browse files
authored
Update postgresql_table.py (ansible-collections#759)
1 parent 7f8d363 commit 8492943

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

plugins/modules/postgresql_table.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,14 @@
208208
name: bar
209209
state: absent
210210
cascade: true
211+
212+
- name: Create table with composite primary key
213+
community.postgresql.postgresql_table:
214+
name: composite_pk_table
215+
columns:
216+
- id bigserial
217+
- num bigint
218+
- primary key (id, num)
211219
'''
212220

213221
RETURN = r'''

0 commit comments

Comments
 (0)