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(migration): fix alter table migration not working with sqlite #290

Merged
merged 5 commits into from
Dec 15, 2021

Conversation

samuelmasse
Copy link
Contributor

We simply disable foreign keys when running sqlite migrations

Comment on lines -3 to 7
// Note: event type ids should be random numbers between -9007199254740991 and 9007199254740991
export enum ConduitEvents {
Created = -8735528850944253,
Deleting = -2992045965298849,
Updated = -4333216986594445
Created,
Deleting,
Updated
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is completely unrelated but these hardcoded ids don't have any use so I removed them

Copy link
Contributor

@laurentlp laurentlp left a comment

Choose a reason for hiding this comment

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

Tested and LGTM!

@@ -90,6 +90,10 @@ export class DatabaseService extends Service {
}
}

getIsLite() {
Copy link
Contributor

Choose a reason for hiding this comment

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

PP:

Suggested change
getIsLite() {
isLite() {

@@ -13,4 +13,4 @@ try {
})
} catch (e) {
console.error("Couldn't get active branch", e)
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Missing EOL

@samuelmasse samuelmasse merged commit 2599256 into master Dec 15, 2021
@samuelmasse samuelmasse deleted the sm-fix-migration branch December 15, 2021 17:38
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

2 participants