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

Table alteration: add untyped column #280

Merged
merged 2 commits into from Nov 29, 2017
Merged

Table alteration: add untyped column #280

merged 2 commits into from Nov 29, 2017

Conversation

groue
Copy link
Owner

@groue groue commented Nov 29, 2017

It is already possible to create a table with untyped columns:

try db.create(table: "test") { t in
    t.column("a")
}

However, it is not possible to add an untyped column:

try db.alter(table: "test") { t in
    t.add(column: "a") // compiler error
}

This PR fixes this hole.

@groue groue merged commit 38b5204 into master Nov 29, 2017
@groue groue deleted the AddUntypedColumn branch December 5, 2017 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant