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

TypeError: this.createIfNotExists is not a function #189

Closed
SkyzohKey opened this issue Oct 12, 2017 · 0 comments
Closed

TypeError: this.createIfNotExists is not a function #189

SkyzohKey opened this issue Oct 12, 2017 · 0 comments

Comments

@SkyzohKey
Copy link

Brief Description

Schema.createIfNotExists is not a function. Title is self-explanatory.

Sample Code

Commit for reference: ToxWebsite/tox.chat@e76513a

Error Stack (if any)

$ adonis migration:run --force # In production, i know.
2017-10-12T13:31:25.582367+00:00 app[release.8544]: TypeError: this.createIfNotExists is not a function
2017-10-12T13:31:25.582374+00:00 app[release.8544]:     at BlogPostSchema.up (/app/database/migrations/1507717880308_blog_post_schema.js:7:10)
2017-10-12T13:31:25.582375+00:00 app[release.8544]:     at Migration._executeSchema (/app/node_modules/@adonisjs/lucid/src/Migration/index.js:250:36)
2017-10-12T13:31:25.582376+00:00 app[release.8544]:     at Migration._execute (/app/node_modules/@adonisjs/lucid/src/Migration/index.js:270:18)
2017-10-12T13:31:25.582377+00:00 app[release.8544]:     at Migration.up (/app/node_modules/@adonisjs/lucid/src/Migration/index.js:362:18)
2017-10-12T13:31:25.582377+00:00 app[release.8544]:     at <anonymous>

Version

Latest AdonisJS & packages versions.

SkyzohKey pushed a commit to ToxWebsite/tox.chat that referenced this issue Oct 12, 2017
RomainLanz added a commit to RomainForks/adonis-lucid that referenced this issue Oct 12, 2017
thetutlage pushed a commit that referenced this issue Oct 18, 2017
* fix(schema): add alias to createTableIfNotExists

Closes #189

* fix(schema): incorrect docblock
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