20-build-annotation.sql 1.0 KB

123456789101112131415161718192021222324252627282930
  1. -- Copyright Materialize, Inc. and contributors. All rights reserved.
  2. --
  3. -- Use of this software is governed by the Business Source License
  4. -- included in the LICENSE file at the root of this repository.
  5. --
  6. -- As of the Change Date specified in that file, in accordance with
  7. -- the Business Source License, use of this software will be governed
  8. -- by the Apache License, Version 2.0.
  9. CREATE TABLE build_annotation (
  10. build_id TEXT NOT NULL,
  11. build_job_id TEXT NOT NULL,
  12. test_suite TEXT NOT NULL,
  13. test_retry_count UINT4 NOT NULL,
  14. is_failure BOOL NOT NULL,
  15. insert_date TIMESTAMPTZ NOT NULL
  16. );
  17. CREATE TABLE build_annotation_error (
  18. build_job_id TEXT NOT NULL,
  19. error_type TEXT NOT NULL,
  20. content TEXT NOT NULL,
  21. issue TEXT,
  22. occurrence_count UINT4 NOT NULL
  23. );
  24. ALTER TABLE build_annotation OWNER TO qa;
  25. ALTER TABLE build_annotation_error OWNER TO qa;
  26. GRANT SELECT, INSERT, UPDATE ON TABLE build_annotation TO "hetzner-ci";
  27. GRANT SELECT, INSERT, UPDATE ON TABLE build_annotation_error TO "hetzner-ci";