mirror of
https://github.com/MizuchiLabs/mantrae.git
synced 2025-12-21 06:10:04 -06:00
23 lines
521 B
SQL
23 lines
521 B
SQL
-- +goose Up
|
|
-- +goose StatementBegin
|
|
DROP TABLE IF EXISTS config;
|
|
|
|
DROP TRIGGER IF EXISTS add_profile_config;
|
|
|
|
CREATE TABLE IF NOT EXISTS entrypoints (
|
|
profile_id INTEGER NOT NULL,
|
|
name VARCHAR(255) NOT NULL,
|
|
address VARCHAR(255) NOT NULL,
|
|
as_default BOOLEAN DEFAULT FALSE,
|
|
http JSONB,
|
|
FOREIGN KEY (profile_id) REFERENCES profiles (id) ON DELETE CASCADE,
|
|
UNIQUE (profile_id, name)
|
|
);
|
|
|
|
-- +goose StatementEnd
|
|
-- +goose Down
|
|
-- +goose StatementBegin
|
|
DROP TABLE IF EXISTS entrypoints;
|
|
|
|
-- +goose StatementEnd
|