Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions api/internal/db/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,12 @@ func (d *Database) Migrate() error {
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
)`,

// Insert default repositories (plugins and templates)
`INSERT INTO repositories (name, url, branch, auth_type, status) VALUES
('Official Plugins', 'https://github.com/JoshuaAFerguson/streamspace-plugins', 'main', 'none', 'active'),
('Official Templates', 'https://github.com/JoshuaAFerguson/streamspace-templates', 'main', 'none', 'active')
ON CONFLICT (name) DO NOTHING`,

// Catalog templates (cache of templates from repos)
`CREATE TABLE IF NOT EXISTS catalog_templates (
id SERIAL PRIMARY KEY,
Expand Down
Loading