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

Error with primary key name with SqlServerAdapter and specifying schema #2305

Closed
MichaelDesignamite opened this issue Sep 4, 2024 · 1 comment

Comments

@MichaelDesignamite
Copy link
Contributor

MichaelDesignamite commented Sep 4, 2024

Migration:

$this->table('custom_schema.table_name')->create();

Generates:

CREATE TABLE [custom_schema].[table_name] ([id] INT   NOT NULL  IDENTITY(1,1), CONSTRAINT PK_custom_schema.table_name PRIMARY KEY ([id]));

This gives the error:

Incorrect syntax near '.'.

PK_custom_schema.table_name needs to be parsed to remove the ..

@MasterOdin
Copy link
Member

Fixed by #2306

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants