-
Notifications
You must be signed in to change notification settings - Fork 37
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
Conversation
// Note: event type ids should be random numbers between -9007199254740991 and 9007199254740991 | ||
export enum ConduitEvents { | ||
Created = -8735528850944253, | ||
Deleting = -2992045965298849, | ||
Updated = -4333216986594445 | ||
Created, | ||
Deleting, | ||
Updated | ||
} |
There was a problem hiding this comment.
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
There was a problem hiding this 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() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PP:
getIsLite() { | |
isLite() { |
packages/server/src/build.ts
Outdated
@@ -13,4 +13,4 @@ try { | |||
}) | |||
} catch (e) { | |||
console.error("Couldn't get active branch", e) | |||
} | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing EOL
We simply disable foreign keys when running sqlite migrations