goose/tests/e2e/testdata/mysql/migrations/00003_c.sql

14 lines
393 B
SQL

-- +goose Up
-- +goose StatementBegin
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 StatementEnd
-- +goose Down
-- +goose StatementBegin
DELETE FROM owners WHERE owner_name IN ('james', 'pressly');
-- +goose StatementEnd