fix: ajuste no SQL de hml
This commit is contained in:
parent
67a82f2189
commit
a35c8c27fa
1 changed files with 7 additions and 0 deletions
|
|
@ -494,3 +494,10 @@ BEGIN
|
|||
END IF;
|
||||
END $$;
|
||||
|
||||
DO $$
|
||||
BEGIN
|
||||
IF NOT EXISTS (SELECT 1 FROM information_schema.columns WHERE table_name='codigos_acesso' AND column_name='empresa_id') THEN
|
||||
ALTER TABLE codigos_acesso ADD COLUMN empresa_id UUID REFERENCES empresas(id) ON DELETE SET NULL;
|
||||
END IF;
|
||||
END $$;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue