1# SQL definition for table's attributes change 2# CAUTION: Do not modify this file unless you know what you are doing. 3# Code generation can be broken if incorrect changes are made. 4 5{alter-cmds} 6 7%if {has-changes} %then 8 %set {alter} ALTER $sp {sql-object} $sp {signature} 9 %set {rls} [ROW LEVEL SECURITY] 10 %set {ddl-end} ; $br [-- ddl-end --] $br 11 12 %if ({pgsql-ver} <=f "11.0") %and {oids} %then 13 {alter} [ SET ] 14 15 %if ({oids}=="unset") %then 16 WITHOUT 17 %else 18 WITH 19 %end 20 21 [ OIDS] 22 {ddl-end} 23 %end 24 25 %if {unlogged} %then 26 {alter} [ SET ] 27 28 %if ({unlogged}=="unset") %then 29 [LOGGED] 30 %else 31 [UNLOGGED] 32 %end 33 34 {ddl-end} 35 %end 36 37 %if {rls-enabled} %then 38 {alter} 39 40 %if ({rls-enabled}=="unset") %then 41 [ DISABLE ] 42 %else 43 [ ENABLE ] 44 %end 45 46 {rls} 47 {ddl-end} 48 %end 49 50 %if {rls-forced} %then 51 {alter} 52 53 %if ({rls-forced}=="unset") %then 54 [ NO] 55 %end 56 57 [ FORCE ] {rls} 58 {ddl-end} 59 %end 60 61%end 62