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 dropSchema and dropSchemaIfExists doc (#4713) #338

Merged
merged 2 commits into from
Oct 10, 2021
Merged

Add dropSchema and dropSchemaIfExists doc (#4713) #338

merged 2 commits into from
Oct 10, 2021

Conversation

OlivierCavadenti
Copy link
Collaborator

I add cascade option for dropSchema here knex/knex#4713, but as I can see, dropSchema and dropSchemaIfExists isn't documented, I add doc for the two methods.

language: 'js',
content: `
//drop schema if exists 'public'
knex.schema.dropSchema('public')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be dropSchemaIfExists

//drop schema if exists 'public'
knex.schema.dropSchema('public')
//drop schema if exists 'public' cascade
knex.schema.dropSchema('public', true)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be dropSchemaIfExists

@kibertoad kibertoad merged commit 2e2fe43 into knex:gh-pages Oct 10, 2021
@kibertoad
Copy link
Collaborator

Thanks a lot!

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

Successfully merging this pull request may close these issues.

2 participants