mirror of
https://github.com/LemmyNet/lemmy.git
synced 2025-01-24 02:45:59 +00:00
Nutomic
67b36c6537
* 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
8 lines
414 B
SQL
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;
|
|
|