Skip to content

Commit

Permalink
test-psql
Browse files Browse the repository at this point in the history
  • Loading branch information
Stuart Grigg committed May 11, 2019
1 parent 976c0c1 commit 9c0be2c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion testdata/psql_test_schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ CREATE TABLE race (
CREATE TABLE race_results (
id integer PRIMARY KEY NOT NULL,
race_id integer,
name text,
name text,
foreign key (race_id) references race(id)
);

Expand Down Expand Up @@ -436,3 +436,8 @@ ALTER TABLE pilot_languages ADD CONSTRAINT pilot_language_pkey PRIMARY KEY (pilo
-- The following fkey remains poorly named to avoid regressions related to psql naming
ALTER TABLE pilot_languages ADD CONSTRAINT pilots_fkey FOREIGN KEY (pilot_id) REFERENCES pilots(id);
ALTER TABLE pilot_languages ADD CONSTRAINT languages_fkey FOREIGN KEY (language_id) REFERENCES languages(id);

-- Previously the generated code had a naming clash when a table was called 'updates'
CREATE TABLE updates (
id integer PRIMARY KEY NOT NULL
);

0 comments on commit 9c0be2c

Please sign in to comment.