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

Add a missing ddl for test #908

Merged
merged 1 commit into from
Sep 3, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions production/schemas/test/default/no_db.ddl
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---------------------------------------------
-- Copyright (c) Gaia Platform LLC
-- All rights reserved.
---------------------------------------------

-- Test the scenario where tables are created without a database.

table doctor (
name string,
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't the indentation here be 2 or 4 spaces (can't remember which one we use with DDL, but it's not 1).

email string unique,
primary_care_patients references patient[],
secondary_care_patients references patient[]
)

table patient (
name string,
primary_care_doctor_email string,
secondary_care_doctor_email string,

primary_care_doctor references doctor
using primary_care_patients
where patient.primary_care_doctor_email = doctor.email,

secondary_care_doctor references doctor
using secondary_care_patients
where patient.secondary_care_doctor_email = doctor.email
)