mirror of
https://github.com/pressly/goose.git
synced 2025-05-31 11:42:04 +00:00
22 lines
398 B
SQL
22 lines
398 B
SQL
-- +goose Up
|
|
-- +goose StatementBegin
|
|
CREATE TABLE owners (
|
|
owner_id Uint64,
|
|
owner_name Utf8,
|
|
owner_type Utf8,
|
|
PRIMARY KEY (owner_id)
|
|
);
|
|
CREATE TABLE repos (
|
|
repo_id Uint64,
|
|
repo_owner_id Uint64,
|
|
repo_full_name Utf8,
|
|
PRIMARY KEY (repo_id)
|
|
);
|
|
-- +goose StatementEnd
|
|
|
|
-- +goose Down
|
|
-- +goose StatementBegin
|
|
DROP TABLE repos;
|
|
DROP TABLE owners;
|
|
-- +goose StatementEnd
|