-
Notifications
You must be signed in to change notification settings - Fork 923
Disable schema validation #1371
-
Is there a way I can sqlc
wherein I do not have to have the CREATE SCHEMA
statement in my migration ?
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment 6 replies
-
You shouldn't need to, works for me without one.
Beta Was this translation helpful? Give feedback.
All reactions
-
version: 1 packages: - path: "crdb" name: "crdb" engine: "postgresql" schema: "schema.sql" queries: "./queries/" sql_package: "pgx/v4"
Beta Was this translation helpful? Give feedback.
All reactions
-
So in schema.sql
you don't have a CREATE SCHEMA statement
defined and you are using the schema in your query files ?
Beta Was this translation helpful? Give feedback.
All reactions
-
Nope, just have some create table and index statements.
Beta Was this translation helpful? Give feedback.
All reactions
-
Maybe make sure you are running the latest version?
Beta Was this translation helpful? Give feedback.
All reactions
-
I can confirm that I had to write "create schema" today, with a very similar setup
Beta Was this translation helpful? Give feedback.