cartodb-4.42/db/migrate/20150929082455_add_pk_to_visualization_backups.rb

10 lines
266 B
Ruby
Raw Normal View History

2024-04-06 13:25:13 +08:00
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