From d6d8a1d66d0f2235d037ef48a9e971ce2cca04fa Mon Sep 17 00:00:00 2001 From: Stuart Grigg Date: Sat, 11 May 2019 12:49:41 +0100 Subject: [PATCH] test mssql and mysql --- testdata/mssql_test_schema.sql | 7 +++++++ testdata/mysql_test_schema.sql | 9 +++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/testdata/mssql_test_schema.sql b/testdata/mssql_test_schema.sql index 0995aa1e5..e0a02d079 100644 --- a/testdata/mssql_test_schema.sql +++ b/testdata/mssql_test_schema.sql @@ -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 diff --git a/testdata/mysql_test_schema.sql b/testdata/mysql_test_schema.sql index ecdd8519e..3d7834d80 100644 --- a/testdata/mysql_test_schema.sql +++ b/testdata/mysql_test_schema.sql @@ -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) ); @@ -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, @@ -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 +);