SQL Server cannot sort on type text. This causes three errors in the activerecord test suite, where tests sort on the comments.body or posts.body columns. This patch changes these columns from text to varchar(4096), allowing these tests to proceed (and pass). All activerecord tests now pass under sqlserver. References #3581. [Tom Ward]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3559 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
Jeremy Kemper 2006-02-09 19:41:32 +00:00
parent b3065a51a9
commit d424674f1b

@ -134,14 +134,14 @@ CREATE TABLE posts (
author_id int default NULL,
title varchar(255) default NULL,
type varchar(255) default NULL,
body text default NULL
body varchar(4096) default NULL
);
CREATE TABLE comments (
id int NOT NULL IDENTITY(1, 1) PRIMARY KEY,
post_id int default NULL,
type varchar(255) default NULL,
body text default NULL
body varchar(4096) default NULL
);
CREATE TABLE authors (