fixes
This commit is contained in:
@ -14,6 +14,9 @@ CREATE TABLE ${table.name}_t (
|
||||
#if (('foreignkey' in $column) and $column.foreignkey)
|
||||
references ${column.name}_t (id) #slurp
|
||||
#end if
|
||||
#if (('unique' in $column) and $column.unique)
|
||||
unique #slurp
|
||||
#end if
|
||||
#if ('default' in $column)
|
||||
default $column.default #slurp
|
||||
#end if
|
||||
@ -26,6 +29,14 @@ CREATE TABLE ${table.name}_t (
|
||||
#end if
|
||||
);
|
||||
|
||||
GRANT SELECT, INSERT#slurp
|
||||
#if (('immutable' not in $table) or (not $table.immutable))
|
||||
, UPDATE#slurp
|
||||
#end if
|
||||
ON ${table.name}_t TO hv2;
|
||||
GRANT SELECT, UPDATE ON ${table.name}_t_id_seq TO hv2;
|
||||
|
||||
#end for
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user