Refactor project to transition from Rust backend to Node.js with Fastify; update Dockerfile and Docker configurations for new build process; enhance local development instructions in CONTRIBUTING.md; implement health checks in Docker Compose; update pnpm-lock.yaml with new dependencies for API and shared packages; revise README.md to reflect new stack and development setup.
Build, Test, and Push CFDM Docker Image / test (push) Has been cancelled
Build, Test, and Push CFDM Docker Image / build-and-push (push) Has been cancelled
Build, Test, and Push CFDM Docker Image / create-release (push) Has been cancelled
Build, Test, and Push CFDM Docker Image / update-wiki (push) Has been cancelled
Build, Test, and Push CFDM Docker Image / test (push) Has been cancelled
Build, Test, and Push CFDM Docker Image / build-and-push (push) Has been cancelled
Build, Test, and Push CFDM Docker Image / create-release (push) Has been cancelled
Build, Test, and Push CFDM Docker Image / update-wiki (push) Has been cancelled
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
CREATE TABLE service_binding_ips (
|
||||
binding_id INTEGER NOT NULL REFERENCES service_bindings(id) ON DELETE CASCADE,
|
||||
ip TEXT NOT NULL,
|
||||
PRIMARY KEY (binding_id, ip)
|
||||
);
|
||||
|
||||
CREATE INDEX idx_service_binding_ips_binding_id ON service_binding_ips(binding_id);
|
||||
|
||||
INSERT INTO service_binding_ips (binding_id, ip)
|
||||
SELECT sbr.binding_id, dr.content
|
||||
FROM service_binding_records sbr
|
||||
JOIN dns_records dr ON dr.id = sbr.dns_record_id
|
||||
WHERE dr.record_type = 'A'
|
||||
AND dr.content IS NOT NULL
|
||||
AND TRIM(dr.content) != ''
|
||||
ON CONFLICT(binding_id, ip) DO NOTHING;
|
||||
|
||||
INSERT INTO service_binding_ips (binding_id, ip)
|
||||
SELECT sb.id, dr.content
|
||||
FROM service_bindings sb
|
||||
JOIN dns_records dr ON dr.id = sb.dns_record_id
|
||||
WHERE dr.record_type = 'A'
|
||||
AND dr.content IS NOT NULL
|
||||
AND TRIM(dr.content) != ''
|
||||
ON CONFLICT(binding_id, ip) DO NOTHING;
|
||||
Reference in New Issue
Block a user