globocom / huskyCI

Performing security tests inside your CI
https://huskyci.opensource.globo.com
BSD 3-Clause "New" or "Revised" License
572 stars 137 forks source link

Add checks into the local SQL instructions #486

Closed edersonbrilhante closed 4 years ago

edersonbrilhante commented 4 years ago

Description

This PR will change huskyci.sql to allow run many times the SQL script without errors. Will add the capability to check if tables and constraints don't exist before creating them.

Example: From CREATE TABLE public."securityTest" To CREATE TABLE IF NOT EXISTS public."securityTest"