mirror of
https://github.com/plausible/analytics.git
synced 2024-12-22 17:11:36 +03:00
add migration (#3590)
This commit is contained in:
parent
cc18423369
commit
7212d336ae
@ -0,0 +1,11 @@
|
||||
defmodule Plausible.Repo.Migrations.BackfillLastBillDateToSubscriptions do
|
||||
use Ecto.Migration
|
||||
|
||||
def change do
|
||||
execute """
|
||||
UPDATE subscriptions
|
||||
SET last_bill_date = inserted_at::date
|
||||
WHERE last_bill_date IS NULL AND paddle_plan_id != 'free_10k';
|
||||
"""
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue
Block a user