Skip to content

Bug: Quote foreign keys for schema referenced tables #3

@beesaferoot

Description

@beesaferoot

gorm-migrate to fails wrap foreign key references in quotes that reference a schema.

Example;

This fails

CONSTRAINT fk_auxstream.track_sources_track_id_fkey
		FOREIGN KEY ("track_id")
		REFERENCES "auxstream.tracks"(id)
		ON DELETE CASCADE
	);

It should qoute the foreign key

CONSTRAINT "fk_auxstream.track_sources_track_id_fkey"
		FOREIGN KEY ("track_id")
		REFERENCES "auxstream.tracks"(id)
		ON DELETE CASCADE
	);`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions