]> git.openstreetmap.org Git - rails.git/blob - db/migrate/20231206141457_alter_sequences_bigint.rb
Set both light and dark banner themes
[rails.git] / db / migrate / 20231206141457_alter_sequences_bigint.rb
1 class AlterSequencesBigint < ActiveRecord::Migration[7.1]
2   def up
3     safety_assured do
4       execute "ALTER SEQUENCE oauth_nonces_id_seq AS bigint"
5       execute "ALTER SEQUENCE notes_id_seq AS bigint"
6       execute "ALTER SEQUENCE note_comments_id_seq AS bigint"
7     end
8   end
9
10   def down
11     safety_assured do
12       execute "ALTER SEQUENCE oauth_nonces_id_seq AS integer"
13       execute "ALTER SEQUENCE notes_id_seq AS integer"
14       execute "ALTER SEQUENCE note_comments_id_seq AS integer"
15     end
16   end
17 end