drop default for #PFX#_users::code_guar, now is foreign key of #PFX#_users::code...
[brisk.git] / sql / sql.d / 065-user-guarant-constraint.sql
1 ALTER TABLE #PFX#users DROP CONSTRAINT #PFX#users_guar_code_fkey;
2 ALTER TABLE #PFX#users ADD CONSTRAINT #PFX#users_guar_code_fkey FOREIGN KEY (guar_code) REFERENCES #PFX#users(code) MATCH FULL;
3
4 ALTER TABLE #PFX#users ALTER COLUMN guar_code DROP DEFAULT; --MF