cartodb/db/migrate/20150929082455_add_pk_to_visualization_backups.rb
2020-06-15 10:58:47 +08:00

10 lines
266 B
Ruby

Sequel.migration do
up do
SequelRails.connection.run("ALTER TABLE visualization_backups ADD PRIMARY KEY (visualization)")
end
down do
SequelRails.connection.run("ALTER TABLE visualization_backups DROP CONSTRAINT visualization_backups_pkey")
end
end