Skip to content

Commit

Permalink
fix runtime validation bug (#477)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyscott18 authored Dec 5, 2023
1 parent a6f42d9 commit bb14cda
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/core/src/schema/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -439,10 +439,6 @@ export const createSchema = <
if (Object.entries(schema).every(([_name]) => _name !== column.type))
throw Error("Column doesn't reference a valid enum");
} else if (isReferenceColumn(column)) {
if (!columnName.endsWith("Id")) {
throw Error('Reference column name must end with "Id"');
}

if (
Object.keys(schema).every(
(_name) => `${_name}.id` !== column.references,
Expand Down

1 comment on commit bb14cda

@vercel
Copy link

@vercel vercel bot commented on bb14cda Dec 5, 2023

Choose a reason for hiding this comment

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

Please sign in to comment.