goose/internal/testing/integration/testdata/migrations/postgres/00002_insert.sql

17 lines
454 B
SQL

-- +goose Up
-- +goose StatementBegin
INSERT INTO owners(owner_name, owner_type)
VALUES ('lucas', 'user'), ('space', 'organization');
-- +goose StatementEnd
INSERT INTO owners(owner_name, owner_type)
VALUES ('james', 'user'), ('pressly', 'organization');
INSERT INTO repos(repo_full_name, repo_owner_id)
VALUES ('james/rover', 3), ('pressly/goose', 4);
-- +goose Down
-- +goose StatementBegin
DELETE FROM owners;
-- +goose StatementEnd