Skip to content

Commit

Permalink
lhm issue found
Browse files Browse the repository at this point in the history
  • Loading branch information
Rany Keddo committed Feb 14, 2012
1 parent eb79fc6 commit 5f33f2c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
@@ -1,5 +1,7 @@
# Large Hadron Migrator [![Build Status](https://secure.travis-ci.org/soundcloud/large-hadron-migrator.png)](http://travis-ci.org/soundcloud/large-hadron-migrator)

Update: There is currently [An issue](https://github.com/soundcloud/large-hadron-migrator/issues/11) with the migration. Fix coming up.

Rails style database migrations are a useful way to evolve your data schema in
an agile manner. Most Rails projects start like this, and at first, making
changes is fast and easy.
Expand Down
1 change: 1 addition & 0 deletions spec/fixtures/users.ddl
Expand Up @@ -5,6 +5,7 @@ CREATE TABLE `users` (
`group` varchar(255) DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
`comment` varchar(20) DEFAULT NULL,
`description` text,
PRIMARY KEY (`id`),
UNIQUE KEY `index_users_on_reference` (`reference`),
KEY `index_users_on_username_and_created_at` (`username`,`created_at`)
Expand Down
4 changes: 4 additions & 0 deletions spec/unit/table_spec.rb
Expand Up @@ -57,6 +57,10 @@
@table.columns["username"][:metadata].must_equal("DEFAULT NULL")
end

it "should parse columns with only a name and type" do
@table.columns.keys.include?(:description).must_equal true
end

it "should parse indices in show create table" do
@table.
indices["index_users_on_username_and_created_at"][:metadata].
Expand Down

0 comments on commit 5f33f2c

Please sign in to comment.