correct SQL
This commit is contained in:
parent
0c4d04b299
commit
5e40badf8b
1 changed files with 1 additions and 2 deletions
|
|
@ -262,12 +262,11 @@ COMMENT ON COLUMN user_sec_repository.ur_id IS 'pk';
|
|||
COMMENT ON COLUMN user_sec_repository.p_id IS 'fk to profile';
|
||||
COMMENT ON COLUMN user_sec_repository.r_id IS 'fk to stock_repository';
|
||||
COMMENT ON COLUMN user_sec_repository.ur_right IS 'Type of right : R for readonly W for write';
|
||||
alter table stock_good add r_id bigint;
|
||||
alter table stock_goods add r_id bigint;
|
||||
|
||||
alter table user_sec_repository add constraint user_sec_repository_r_id_p_id_u unique (r_id,p_id);
|
||||
alter table user_sec_action_profile add constraint user_sec_action_profile_p_id_p_granted_u unique (p_id,p_granted);
|
||||
ALTER TABLE stock_goods ADD COLUMN r_id bigint;
|
||||
update stock_goods set r_id=1;
|
||||
ALTER TABLE stock_goods ADD CONSTRAINT stock_goods_sg_type CHECK (sg_type = 'c'::bpchar OR sg_type = 'd'::bpchar);
|
||||
CREATE INDEX fk_stock_good_repository_r_id ON stock_goods (r_id );
|
||||
alter table action_gestion drop ag_cal;
|
||||
Loading…
Add table
Add a link
Reference in a new issue