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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update prismagraphql/cockroachdb-custom:23.1 docker digest to b6cbbf9 #4504

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '3'
services:
cockroach_23_1:
image: prismagraphql/cockroachdb-custom:23.1@sha256:c5a97355d56a7692ed34d835dfd8e3663d642219ea90736658a24840ea26862d
image: prismagraphql/cockroachdb-custom:23.1@sha256:b6cbbf910d964792cb72498bba7b7821ad44473f13ab686d05b63d091e4d137f
Jolg42 marked this conversation as resolved.
Show resolved Hide resolved
restart: unless-stopped
command: |
start-single-node --insecure
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
-- tags=cockroachdb
-- exclude=CockroachDb231

CREATE TABLE "User" (
id INT4 GENERATED BY DEFAULT AS IDENTITY,
Expand All @@ -17,6 +18,7 @@ ALTER TABLE "Post"
REFERENCES "User"(id);



/*
generator js {
provider = "prisma-client-js"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
-- tags=CockroachDb231
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wanted to use

-- tags=cockroachdb
-- exclude=CockroachDb222,CockroachDb221

But that didn't work, if someone is interested to fix that, that could be done outside of this PR


CREATE TABLE "User" (
id INT4 GENERATED BY DEFAULT AS IDENTITY,
CONSTRAINT "User_pkey" PRIMARY KEY (id)
);

CREATE TABLE "Post" (
id INT4 GENERATED BY DEFAULT AS IDENTITY,
user_id INT4 REFERENCES "User"(id),
CONSTRAINT "Post_pkey" PRIMARY KEY (id)
);

ALTER TABLE "Post"
ADD CONSTRAINT "second_fk"
FOREIGN KEY (user_id)
REFERENCES "User"(id);



/*
generator js {
provider = "prisma-client-js"
}

datasource db {
provider = "cockroachdb"
url = env("DATABASE_URL")
}

model Post {
id Int @id @default(sequence(maxValue: 2147483647sdsafsdfsdf))
Jolg42 marked this conversation as resolved.
Show resolved Hide resolved
user_id Int?
User User? @relation(fields: [user_id], references: [id], onDelete: NoAction, onUpdate: NoAction)
}

model User {
id Int @id @default(sequence(maxValue: 2147483647))
Post Post[]
}
*/
Loading