01-build.sql 905 B

1234567891011121314151617181920212223242526
  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. -- meta data of the build
  10. CREATE TABLE build (
  11. pipeline TEXT NOT NULL,
  12. build_number UINT4 NOT NULL,
  13. build_id TEXT NOT NULL,
  14. branch TEXT NOT NULL,
  15. commit_hash TEXT NOT NULL,
  16. main_ancestor_commit_hash TEXT, -- nullable for now not to break earlier versions
  17. mz_version TEXT NOT NULL,
  18. date TIMESTAMPTZ NOT NULL,
  19. data_version UINT4 NOT NULL
  20. );
  21. CREATE INDEX IN CLUSTER test_analytics ON build (build_id);
  22. ALTER TABLE build OWNER TO qa;
  23. GRANT SELECT, INSERT, UPDATE ON TABLE build TO "hetzner-ci";