mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-06-02 21:49:25 +00:00
5fe712cca6
* Refactor: move store/ to server/store/ * fix pipeline for moved tests Co-authored-by: 6543 <6543@obermui.de>
20 lines
427 B
SQL
20 lines
427 B
SQL
-- name: create-table-perms
|
|
|
|
CREATE TABLE IF NOT EXISTS perms (
|
|
perm_user_id INTEGER NOT NULL
|
|
,perm_repo_id INTEGER NOT NULL
|
|
,perm_pull BOOLEAN
|
|
,perm_push BOOLEAN
|
|
,perm_admin BOOLEAN
|
|
,perm_synced INTEGER
|
|
,UNIQUE(perm_user_id, perm_repo_id)
|
|
);
|
|
|
|
-- name: create-index-perms-repo
|
|
|
|
CREATE INDEX ix_perms_repo ON perms (perm_repo_id);
|
|
|
|
-- name: create-index-perms-user
|
|
|
|
CREATE INDEX ix_perms_user ON perms (perm_user_id);
|