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

Add an AlterTypeBuilder #981

Open
trescenzi opened this issue May 7, 2024 · 0 comments
Open

Add an AlterTypeBuilder #981

trescenzi opened this issue May 7, 2024 · 0 comments

Comments

@trescenzi
Copy link

There doesn't seem to be a way to alter a type after creating it without using raw sql. The following worked fine in a migration for me but it would be nice if there was a way to do it without raw sql. Happy enough if the answer is that it's more work to support than it's worth as the sql is simple enough but wanted to file an issue since I couldn't find anything related to this.

export async function up(db: Kysely<any>): Promise<void> {
  await sql`alter type status add value 'down'`.execute(db)
}

Thanks! Really loving Kysely.

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

1 participant