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 Up
-- +goose StatementBegin -- +goose StatementBegin
INSERT INTO subreddits (name, subtype, schedule) VALUES 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 StatementEnd
-- +goose Down -- +goose Down
-- +goose StatementBegin -- +goose StatementBegin
DELETE FROM subreddits WHERE name IN ('wallpapers', 'wallpaper'); DELETE FROM subreddits WHERE name IN ('wallpaper', 'wallpapers');
-- +goose StatementEnd -- +goose StatementEnd