mirror of
https://github.com/plausible/analytics.git
synced 2024-12-24 01:54:34 +03:00
Add active_visitors
column to imported_pages
CH table (#4028)
This commit is contained in:
parent
fede2f0a8a
commit
069170eb1d
@ -0,0 +1,19 @@
|
|||||||
|
defmodule Plausible.IngestRepo.Migrations.AddActiveVisitorsToImportedPages do
|
||||||
|
use Ecto.Migration
|
||||||
|
|
||||||
|
def up do
|
||||||
|
execute """
|
||||||
|
ALTER TABLE imported_pages
|
||||||
|
#{Plausible.MigrationUtils.on_cluster_statement("imported_pages")}
|
||||||
|
ADD COLUMN active_visitors UInt64
|
||||||
|
"""
|
||||||
|
end
|
||||||
|
|
||||||
|
def down do
|
||||||
|
execute """
|
||||||
|
ALTER TABLE imported_pages
|
||||||
|
#{Plausible.MigrationUtils.on_cluster_statement("imported_pages")}
|
||||||
|
DROP COLUMN active_visitors
|
||||||
|
"""
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in New Issue
Block a user