aboutsummaryrefslogtreecommitdiff
path: root/libbrep/build-extra.sql
blob: 6a222a7ed72b44d272e36faea28896453b053068 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
-- This file should be parsable by the brep-migrate utility. To decrease the
-- parser complexity, there is a number of restrictions, see package-extra.sql
-- file for details.
--

DROP FOREIGN TABLE IF EXISTS build_package;

DROP FOREIGN TABLE IF EXISTS build_repository;

-- The foreign table for build_repository object.
--
--
CREATE FOREIGN TABLE build_repository (
  name TEXT NOT NULL,
  location TEXT NOT NULL,
  certificate_fingerprint TEXT NULL)
SERVER package_server OPTIONS (table_name 'repository');

-- The foreign table for build_package object.
--
--
CREATE FOREIGN TABLE build_package (
  name TEXT NOT NULL,
  version_epoch INTEGER NOT NULL,
  version_canonical_upstream TEXT NOT NULL,
  version_canonical_release TEXT NOT NULL COLLATE "C",
  version_revision INTEGER NOT NULL,
  version_upstream TEXT NOT NULL,
  version_release TEXT NULL,
  internal_repository TEXT NULL)
SERVER package_server OPTIONS (table_name 'package');