Skip to content

Commit

Permalink
fix: Increase contactName field size to prevent truncation errors (fixes
Browse files Browse the repository at this point in the history
 #193)

Co-Authored-By: andy@juicyllama.com <andy@juicyllama.com>
  • Loading branch information
devin-ai-integration[bot] and andyslack committed Jan 22, 2025
1 parent 9b9c5ee commit 420f8fd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion demo/databases/mssql.sql
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ CREATE TABLE Customer (
custId INT IDENTITY NOT NULL
,userId int NOT NULL
,companyName VARCHAR(40) NOT NULL
,contactName VARCHAR(30) NULL
,contactName VARCHAR(60) NULL
,contactTitle VARCHAR(30) NULL
,address VARCHAR(60) NULL
,city VARCHAR(15) NULL
Expand Down
4 changes: 2 additions & 2 deletions demo/databases/mysql.sql
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ CREATE TABLE IF NOT EXISTS Customer (
custId INT AUTO_INCREMENT NOT NULL
,userId int NOT NULL
,companyName VARCHAR(40) NOT NULL
,contactName VARCHAR(30) NULL
,contactName VARCHAR(60) NULL
,contactTitle VARCHAR(30) NULL
,address VARCHAR(60) NULL
,city VARCHAR(15) NULL
Expand Down Expand Up @@ -222,4 +222,4 @@ INSERT IGNORE INTO SalesOrder(orderId, custId, employeeId, orderDate, requiredDa
INSERT IGNORE INTO SalesOrder(orderId, custId, employeeId, orderDate, requiredDate, shippedDate, shipperId, freight, shipName, shipAddress, shipCity, shipRegion, shipPostalCode, shipCountry)
VALUES(24, 4, 6, '2006-08-01 00:00:00.000', '2006-08-29 00:00:00.000', '2006-08-30 00:00:00.000', 2, 4.54, N'Ship to 75-C', N'P.O. Box 7890', N'Lander', N'WY', N'10316', N'USA');
INSERT IGNORE INTO SalesOrder(orderId, custId, employeeId, orderDate, requiredDate, shippedDate, shipperId, freight, shipName, shipAddress, shipCity, shipRegion, shipPostalCode, shipCountry)
VALUES(25, 5, 6, '2006-08-02 00:00:00.000', '2006-08-30 00:00:00.000', '2006-08-06 00:00:00.000', 2, 98.03, N'Ship to 65-A', N'7890 Milton Dr.', N'Albuquerque', N'NM', N'10285', N'USA');
VALUES(25, 5, 6, '2006-08-02 00:00:00.000', '2006-08-30 00:00:00.000', '2006-08-06 00:00:00.000', 2, 98.03, N'Ship to 65-A', N'7890 Milton Dr.', N'Albuquerque', N'NM', N'10285', N'USA');
4 changes: 2 additions & 2 deletions demo/databases/postgres.sql
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ CREATE TABLE "Customer"
"userId" INT NOT NULL,
"companyName" VARCHAR (40) NOT NULL,
"email" VARCHAR (255) NULL,
"contactName" VARCHAR (30) NULL,
"contactName" VARCHAR (60) NULL,
"contactTitle" VARCHAR (30) NULL,
address VARCHAR (60) NULL,
city VARCHAR (15) NULL,
Expand Down Expand Up @@ -93,7 +93,7 @@ CREATE TABLE "Supplier"
(
"supplierId" SERIAL PRIMARY KEY NOT NULL,
"companyName" VARCHAR (40) NOT NULL,
"contactName" VARCHAR (30) NULL,
"contactName" VARCHAR (60) NULL,
"contactTitle" VARCHAR (30) NULL,
address VARCHAR (60) NULL,
city VARCHAR (15) NULL,
Expand Down

0 comments on commit 420f8fd

Please sign in to comment.