Primeiro commit do projeto
davinTI/app-dono-modulos/pipeline/head There was a failure building this commit
davinTI/app-dono-modulos/pipeline/head There was a failure building this commit
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
-- +goose Up
|
||||
DECLARE
|
||||
v_count NUMBER;
|
||||
BEGIN
|
||||
SELECT COUNT(*) INTO v_count
|
||||
FROM USER_INDEXES
|
||||
WHERE INDEX_NAME = 'IDX_FLASH_VENDAS_01';
|
||||
|
||||
IF v_count = 0 THEN
|
||||
EXECUTE IMMEDIATE 'CREATE INDEX IDX_FLASH_VENDAS_01
|
||||
ON TB_FLASH_VENDAS (NUMERO_LOJA, DATA_VENDA)';
|
||||
END IF;
|
||||
END;
|
||||
|
||||
-- +goose Down
|
||||
SELECT 'down SQL query';
|
||||
Reference in New Issue
Block a user