21855: Change RPM repo quoting in Python READMEs
[arvados.git] / services / api / db / migrate / 20180806133039_index_all_filenames.rb
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: AGPL-3.0
4
5 class IndexAllFilenames < ActiveRecord::Migration[4.2]
6   def up
7     ActiveRecord::Base.connection.execute 'ALTER TABLE collections ALTER COLUMN file_names TYPE text'
8   end
9   def down
10     ActiveRecord::Base.connection.execute 'ALTER TABLE collections ALTER COLUMN file_names TYPE varchar(8192)'
11   end
12 end