提交 d424674f 编写于 作者: J Jeremy Kemper

SQL Server cannot sort on type text. This causes three errors in the...

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
上级 b3065a51
......@@ -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 (
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册