migration: fix wallpaper and wallpapers order on insert

This commit is contained in:
Tigor Hutasuhut 2024-04-08 16:19:56 +07:00
parent 117d8765fc
commit f74df98a52

View file

@ -1,12 +1,12 @@
-- +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
('wallpaper', 0, '0 0 * * *'), -- every day at midnight
('wallpapers', 0, '0 0 * * *'); -- every day at midnight
-- +goose StatementEnd
-- +goose Down
-- +goose StatementBegin
DELETE FROM subreddits WHERE name IN ('wallpapers', 'wallpaper');
DELETE FROM subreddits WHERE name IN ('wallpaper', 'wallpapers');
-- +goose StatementEnd