Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Disable schema validation #1371

Unanswered
kishankishore2908 asked this question in Q&A
Discussion options

Is there a way I can sqlc wherein I do not have to have the CREATE SCHEMA statement in my migration ?

You must be logged in to vote

Replies: 1 comment 6 replies

Comment options

You shouldn't need to, works for me without one.

You must be logged in to vote
6 replies
Comment options

version: 1
packages:
 - path: "crdb"
 name: "crdb"
 engine: "postgresql"
 schema: "schema.sql"
 queries: "./queries/"
 sql_package: "pgx/v4"
Comment options

So in schema.sql you don't have a CREATE SCHEMA statement defined and you are using the schema in your query files ?

Comment options

Nope, just have some create table and index statements.

Comment options

Maybe make sure you are running the latest version?

Comment options

I can confirm that I had to write "create schema" today, with a very similar setup

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /