We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d27c5b commit b1057f4Copy full SHA for b1057f4
priv/ingest_repo/migrations/20241216133031_add_scroll_depth_to_imported_pages.exs
@@ -1,21 +1,17 @@
1
defmodule Plausible.IngestRepo.Migrations.AddScrollDepthToImportedPages do
2
use Ecto.Migration
3
4
- @on_cluster Plausible.MigrationUtils.on_cluster_statement("imported_pages")
5
-
6
def up do
+ on_cluster = Plausible.MigrationUtils.on_cluster_statement("imported_pages")
+
7
execute """
8
ALTER TABLE imported_pages
9
- #{@on_cluster}
+ #{on_cluster}
10
ADD COLUMN scroll_depth UInt8 DEFAULT 255
11
"""
12
end
13
14
def down do
15
- execute """
16
- ALTER TABLE imported_pages
17
18
- DROP COLUMN scroll_depth
19
- """
+ raise "Irreversible"
20
21
0 commit comments