lemmy/migrations/2025-01-10-135505_donation-dialog/up.sql
Nutomic 67b36c6537
Add support for donation dialog (fixes #4856) (#5318)
* Add support for donation dialog (fixes #4856)

* more changes

* test

* remove files

* default value for new user last_donation_notification

* move disable_donation_dialog to local_site

* restore formatting
2025-01-17 07:28:41 -05:00

8 lines
414 B
SQL

-- Generate new column last_donation_notification with default value at random time in the
-- past year (so that users dont see it all at the same time after instance upgrade).
ALTER TABLE local_user
ADD COLUMN last_donation_notification timestamptz NOT NULL DEFAULT (now() - (random() * (interval '12 months')));
ALTER TABLE local_site
ADD COLUMN disable_donation_dialog boolean NOT NULL DEFAULT FALSE;