Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(gh): CockroachDB image beta.5 #2887

Merged
merged 4 commits into from May 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/migration-engine.yml
Expand Up @@ -87,7 +87,7 @@ jobs:
url: "postgresql://postgres:prisma@localhost:5435"
- name: postgres14
url: "postgresql://postgres:prisma@localhost:5437"
- name: cockroach_22_1_0_alpha_1
- name: cockroach_22_1_0_beta_5
url: "postgresql://prisma@localhost:26257"
- name: sqlite
url: sqlite
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Expand Up @@ -88,11 +88,11 @@ start-postgres14:
dev-postgres14: start-postgres14
cp $(CONFIG_PATH)/postgres14 $(CONFIG_FILE)

start-cockroach_22_1_0_alpha_1:
docker-compose -f docker-compose.yml up -d --remove-orphans cockroach_22_1_0_alpha_1
start-cockroach_22_1_0_beta_5:
docker-compose -f docker-compose.yml up -d --remove-orphans cockroach_22_1_0_beta_5

dev-cockroach_22_1_0_alpha_1: start-cockroach_22_1_0_alpha_1
cp $(CONFIG_PATH)/cockroach_22_1_0_alpha_1 $(CONFIG_FILE)
dev-cockroach_22_1_0_beta_5: start-cockroach_22_1_0_beta_5
cp $(CONFIG_PATH)/cockroach_22_1_0_beta_5 $(CONFIG_FILE)

start-cockroach_21_2_0_patched:
docker-compose -f docker-compose.yml up -d --remove-orphans cockroach_21_2_0_patched
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
@@ -1,7 +1,7 @@
version: "3"
services:
cockroach_22_1_0_alpha_1:
image: prismagraphql/cockroachdb-custom:22.1.0-alpha.1
cockroach_22_1_0_beta_5:
image: prismagraphql/cockroachdb-custom:22.1.0-beta.5
restart: always
command: start-single-node --insecure
ports:
Expand Down
Expand Up @@ -198,7 +198,7 @@ fn syntax_errors_return_error_position(api: TestApi) {
^
HINT: try \h CREATE TABLE

DbError { severity: "ERROR", parsed_severity: None, code: SqlState(E42601), message: "at or near \"is_good_dog\": syntax error", detail: Some("source SQL:\nCREATE TABLE \"Dog\" (\n id SERIAL PRIMARY KEY,\n name TEXT NOT NULL\n is_good_dog BOOLEAN NOT NULL DEFAULT TRUE\n ^"), hint: Some("try \\h CREATE TABLE"), position: None, where_: None, schema: None, table: None, column: None, datatype: None, constraint: None, file: Some("lexer.go"), line: Some(246), routine: Some("Error") }
DbError { severity: "ERROR", parsed_severity: None, code: SqlState(E42601), message: "at or near \"is_good_dog\": syntax error", detail: Some("source SQL:\nCREATE TABLE \"Dog\" (\n id SERIAL PRIMARY KEY,\n name TEXT NOT NULL\n is_good_dog BOOLEAN NOT NULL DEFAULT TRUE\n ^"), hint: Some("try \\h CREATE TABLE"), position: None, where_: None, schema: None, table: None, column: None, datatype: None, constraint: None, file: Some("lexer.go"), line: Some(251), routine: Some("Error") }

0: sql_migration_connector::apply_migration::apply_script
with migration_name=" 0"
Expand Down