Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Active subscribers #22

Closed
wants to merge 3 commits into from
Closed

Active subscribers #22

wants to merge 3 commits into from

Conversation

ChaituVR
Copy link
Member

@ChaituVR ChaituVR commented Aug 8, 2022

Fixes #21

Tasks for @bonustrack

  • Make sure to run these:
ALTER TABLE subscribers
ADD COLUMN last_attempt int DEFAULT 0 NOT NULL AFTER space;

ALTER TABLE subscribers
ADD COLUMN last_active int DEFAULT 0 NOT NULL AFTER space;

ALTER TABLE
  `subscribers` MODIFY `created` TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL;

ALTER TABLE
  `subscribers` MODIFY `active` int DEFAULT 1 NOT NULL;

Update subscribers set created = now();
Update subscribers set active = 1;

src/events.ts Outdated Show resolved Hide resolved
@ChaituVR ChaituVR closed this Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Store last active and last attempt timestamps in subscribers table
1 participant