internal/store/migrations/0012_pins.up.sql

0666c9f622171df00f8e2c79a13d011522039624
gitbay/internal/store/migrations/0012_pins.up.sql

6 lines · 279 bytes

1CREATE TABLE repo_pins (
2    user_id  INTEGER NOT NULL REFERENCES users(id) ON DELETE CASCADE,
3    repo_id  INTEGER NOT NULL REFERENCES repos(id) ON DELETE CASCADE,
4    pinned_at TEXT NOT NULL DEFAULT (strftime('%Y-%m-%dT%H:%M:%fZ','now')),
5    PRIMARY KEY (user_id, repo_id)
6);
Keyboard shortcuts

Global

⌘K
Command palette & jump
/
Focus search
?
Show this help
g d
Dashboard
g e
Explore repositories
g n
Notifications

Repository & editor

t
Find file in repository
y
Copy immutable SHA permalink
g c
Code tab
g i
Issues tab
g m
Merge requests tab
g b
Builds tab
⌘↵
Submit active form