1
0
mirror of synced 2026-01-01 18:02:53 -05:00
Files
airbyte/airbyte-integrations/infrastructure/ssh_tunnel/module/sql/postgresql-01-dbcreate.sql
Jared Rhizor 25674fc306 upgrade to Gradle 7.3.1 / Java 17 (#7964)
* upgrade gradle

* upgrade to Java 17 (and fix a few of the node versioning misses)

* oops

* try to run a different format version

* fix spotless by upgrading / reformatting some files

* fix ci settings

* upgrade mockito to avoid other errors

* undo bad format

* fix "incorrect" sql comments

* fmt

* add debug flag

* remove

* bump

* bump jooq to a version that has a java 17 dist

* fix

* remove logs

* oops

* revert jooq upgrade

* fix

* set up java for connector test

* fix yaml

* generate std source tests

* fail zombie job attempts and add failure reason (#8709)

* fail zombie job attempts and add failure reason

* remove failure reason

* bump gcp dependencies to pick up grpc update (#8713)

* Bump Airbyte version from 0.33.9-alpha to 0.33.10-alpha (#8714)

Co-authored-by: jrhizor <jrhizor@users.noreply.github.com>

* Change CDK "Caching" header to "nested streams & caching"

* Update fields in source-connectors specifications: file, freshdesk, github, google-directory, google-workspace-admin-reports, iterable (#8524)

Signed-off-by: Sergey Chvalyuk <grubberr@gmail.com>

Co-authored-by: Serhii Chvaliuk <grubberr@gmail.com>
Co-authored-by: Sherif A. Nada <snadalive@gmail.com>

* move S3Config into destination-s3; update dependencies accordingly (#8562)

Co-authored-by: Lake Mossman <lake@airbyte.io>
Co-authored-by: jrhizor <jrhizor@users.noreply.github.com>
Co-authored-by: Sherif A. Nada <snadalive@gmail.com>
Co-authored-by: Iryna Grankova <87977540+igrankova@users.noreply.github.com>
Co-authored-by: Serhii Chvaliuk <grubberr@gmail.com>
Co-authored-by: Edward Gao <edward.gao@airbyte.io>
2021-12-10 16:57:54 -08:00

112 lines
1.7 KiB
SQL

-- generic setup for a brand new empty postgresql RDS
CREATE
ROLE integrationtest_rw;
GRANT integrationtest_rw TO airbyte;
CREATE
DATABASE test OWNER integrationtest_rw;
GRANT CONNECT ON
DATABASE test TO integrationtest_rw;
CREATE
SCHEMA integrationtest AUTHORIZATION integrationtest_rw;
GRANT USAGE,
CREATE
ON
SCHEMA integrationtest TO integrationtest_rw;
GRANT SELECT
,
INSERT
,
UPDATE
,
DELETE
ON
ALL TABLES IN SCHEMA integrationtest TO integrationtest_rw;
ALTER DEFAULT PRIVILEGES IN SCHEMA integrationtest GRANT SELECT
,
INSERT
,
UPDATE
,
DELETE
ON
TABLES TO integrationtest_rw;
GRANT USAGE ON
ALL SEQUENCES IN SCHEMA integrationtest TO integrationtest_rw;
ALTER DEFAULT PRIVILEGES IN SCHEMA integrationtest GRANT USAGE ON
SEQUENCES TO integrationtest_rw;
REVOKE ALL ON
database template1
FROM
public;
REVOKE ALL ON
database postgres
FROM
public;
# Test DATA used BY the postgres SOURCE test classes
SET
SCHEMA 'public';
CREATE
TABLE
id_and_name(
id INTEGER,
name VARCHAR(200)
);
INSERT
INTO
id_and_name(
id,
name
)
VALUES(
1,
'picard'
),
(
2,
'crusher'
),
(
3,
'vash'
);
CREATE
TABLE
starships(
id INTEGER,
name VARCHAR(200)
);
INSERT
INTO
starships(
id,
name
)
VALUES(
1,
'enterprise-d'
),
(
2,
'defiant'
),
(
3,
'yamato'
);