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

Why from_id, to_id, and type_id do not have the same type and default values? #205

Open
Konard opened this issue Sep 1, 2024 · 0 comments

Comments

@Konard
Copy link
Member

Konard commented Sep 1, 2024

https://github.com/deepcase/deeplinks/blob/94d5926fdfaa0003c4a9c28980840d66512fdc4f/migrations/1616701513782-links.ts#L19

CREATE TABLE ${SCHEMA}."${TABLE_NAME}" (
  id bigint PRIMARY KEY,
  from_id bigint DEFAULT 0,
  to_id bigint DEFAULT 0,
  type_id bigint NOT NULL);

As far as I understand at the moment, from_id and to_id are nullable, but have 0 as a default value.
Type is not nullable, but it has no default value.


Forked from deep-foundation/deeplinks#15 by https://github.com/konard/gh-org-migrator

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