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

fix(misunderstood): proper constraint migration #4351

Merged
merged 4 commits into from
Jan 11, 2021

Conversation

EFF
Copy link
Member

@EFF EFF commented Jan 10, 2021

This adds a proper constraint migration on misunderstood.

@davidvitora next time please test your migrations extensively.

@EFF EFF requested a review from spg January 10, 2021 00:45
@@ -119,7 +119,7 @@ export class MigrationService {

await this.database
.knex('srv_migrations')
.insert({ ...entry, details: logs.join('\n'), created_at: this.database.knex.date.now() })
.insert({ ...entry, details: logs.join('\n').slice(-255), created_at: this.database.knex.date.now() })
Copy link
Member Author

Choose a reason for hiding this comment

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

super quick fix of .slice(-255) because migration has a varchar(255) for details,

needs a migration for this and I dont have time now

@davidvitora
Copy link
Contributor

@EFF noted, sorry for the inconvenience

slvnperron
slvnperron previously approved these changes Jan 10, 2021
@EFF EFF merged commit acf046a into master Jan 11, 2021
@EFF EFF deleted the f_fix-misunderstood-migratio branch January 11, 2021 13:18
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.

None yet

3 participants