migration: fix wallpaper and wallpapers order on insert
This commit is contained in:
parent
117d8765fc
commit
f74df98a52
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue