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 react-native data migration #145

Merged
merged 2 commits into from
Aug 21, 2023

Conversation

maycon-mello
Copy link
Collaborator

@maycon-mello maycon-mello commented Aug 21, 2023

rewriting the migration scripts to use TypeORM helpers instead of plain SQL, it should provide better compatibility across different DBs and devices

new Table({
name: 'network_entity',
columns: [
new TableColumn({name: 'id', type: 'varchar', isPrimary: true}),
Copy link
Contributor

Choose a reason for hiding this comment

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

is "NOT NULL" implied with the ORM whenever you mark a primary index?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yes

@maycon-mello maycon-mello merged commit 4618a3a into master Aug 21, 2023
1 check passed
@maycon-mello maycon-mello deleted the fix/react-native-data-migrations branch August 21, 2023 13:03
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.

3 participants