add service
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
-- +goose Up
|
||||
CREATE TABLE IF NOT EXISTS mailing_status (
|
||||
CREATE TABLE IF NOT EXISTS mailling_status (
|
||||
id SERIAL PRIMARY KEY,
|
||||
status_name TEXT NOT NULL UNIQUE
|
||||
);
|
||||
|
||||
INSERT INTO mailing_status (status_name) VALUES
|
||||
('pending'),
|
||||
('in_progress'),
|
||||
('completed'),
|
||||
('failed')
|
||||
INSERT INTO mailling_status (status_name) VALUES
|
||||
('PENDING'),
|
||||
('IN_PROGRESS'),
|
||||
('COMPLETED'),
|
||||
('FAILED')
|
||||
ON CONFLICT (status_name) DO NOTHING;
|
||||
|
||||
-- +goose Down
|
||||
DROP TABLE mailing_status;
|
||||
DROP TABLE mailling_status;
|
||||
|
||||
Reference in New Issue
Block a user