maximo tejeda e5d160da8c
All checks were successful
dev test / test (push) Successful in 39s
dev test / vulnCheck (push) Successful in 39s
dev test / Ci-Lint (push) Successful in 24s
FIRST COMMIT
2024-12-14 10:40:22 -04:00

6 lines
506 B
SQL

CREATE VIRTUAL TABLE IF NOT EXISTS vcedulados USING(nombres, apellido1, apellido2, mun_ced, seq_ced, ver_ced, content=cedulados, content_rowid=id);
-- Tiggers to update index on first run
CREATE TRIGGER ai_cedulados AFTER INSERT ON cedulados BEGIN
INSERT INTO vcedulados(rowid, nombres, apellido1, apellido2, mun_ced, seq_ced, ver_ced) VALUES (new.nombres, new.apellido1, new.apellido2, new.mun_ced, new.seq_ced, new.ver_ced);
END;