Redmage/db/migrations/20240407001522_insert_default_subreddits.sql

13 lines
361 B
MySQL
Raw Normal View History

-- +goose Up
-- +goose StatementBegin
INSERT INTO subreddits (name, subtype, schedule) VALUES
('wallpapers', 0, '0 0 * * *'), -- every day at midnight
('wallpaper', 0, '0 0 * * *'); -- every day at midnight
-- +goose StatementEnd
-- +goose Down
-- +goose StatementBegin
DELETE FROM subreddits WHERE name IN ('wallpapers', 'wallpaper');
-- +goose StatementEnd