Skip to content

Commit

Permalink
test mssql and mysql
Browse files Browse the repository at this point in the history
  • Loading branch information
Stuart Grigg committed May 11, 2019
1 parent 7347ee3 commit d6d8a1d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
7 changes: 7 additions & 0 deletions testdata/mssql_test_schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -437,3 +437,10 @@ CREATE TABLE powers_of_two
CONSTRAINT machine_name UNIQUE(machine_name)
);
GO

-- Previously the generated code had a naming clash when a table was called 'updates'
CREATE TABLE updates
(
id integer PRIMARY KEY NOT NULL
);
GO
9 changes: 7 additions & 2 deletions testdata/mysql_test_schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,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 @@ -342,7 +342,7 @@ ALTER TABLE pilot_languages ADD CONSTRAINT pilot_language_fkey FOREIGN KEY (pilo
ALTER TABLE pilot_languages ADD CONSTRAINT languages_fkey FOREIGN KEY (language_id) REFERENCES languages(id);

CREATE TABLE powers_of_two (
vid int(10) unsigned NOT NULL AUTO_INCREMENT,
vid int(10) unsigned NOT NULL AUTO_INCREMENT,
name varchar(255) NOT NULL DEFAULT '',
machine_name varchar(255) NOT NULL DEFAULT '',
description longtext,
Expand All @@ -353,3 +353,8 @@ CREATE TABLE powers_of_two (
UNIQUE KEY machine_name (machine_name),
KEY list (weight,name)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;

-- 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 d6d8a1d

Please sign in to comment.