Skip to content

Commit e21d1a6

Browse files
Merge pull request #318 from community-scripts/feat/add_repo
feat: Add multi-repository support with repository filtering
2 parents 4a00d43 + 9608aff commit e21d1a6

File tree

433 files changed

+2600
-2807
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

433 files changed

+2600
-2807
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
-- CreateTable
2+
CREATE TABLE "repositories" (
3+
"id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
4+
"url" TEXT NOT NULL,
5+
"enabled" BOOLEAN NOT NULL DEFAULT true,
6+
"is_default" BOOLEAN NOT NULL DEFAULT false,
7+
"is_removable" BOOLEAN NOT NULL DEFAULT true,
8+
"priority" INTEGER NOT NULL DEFAULT 0,
9+
"created_at" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
10+
"updated_at" DATETIME NOT NULL
11+
);
12+
13+
-- CreateIndex
14+
CREATE UNIQUE INDEX "repositories_url_key" ON "repositories"("url");

prisma/schema.prisma

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,3 +95,16 @@ model LXCConfig {
9595
9696
@@map("lxc_configs")
9797
}
98+
99+
model Repository {
100+
id Int @id @default(autoincrement())
101+
url String @unique
102+
enabled Boolean @default(true)
103+
is_default Boolean @default(false)
104+
is_removable Boolean @default(true)
105+
priority Int @default(0)
106+
created_at DateTime @default(now())
107+
updated_at DateTime @updatedAt
108+
109+
@@map("repositories")
110+
}

scripts/json/2fauth.json

Lines changed: 0 additions & 44 deletions
This file was deleted.

scripts/json/actualbudget.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,6 @@
3131
"username": null,
3232
"password": null
3333
},
34-
"notes": []
34+
"notes": [],
35+
"repository_url": "https://github.com/community-scripts/ProxmoxVE"
3536
}

scripts/json/add-iptag.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,6 @@
4848
"text": "You can execute the ip tool manually with `iptag-run`",
4949
"type": "info"
5050
}
51-
]
51+
],
52+
"repository_url": "https://github.com/community-scripts/ProxmoxVE"
5253
}

scripts/json/add-netbird-lxc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,6 @@
4444
"text": "The script only works in Debian/Ubuntu, not in Alpine!",
4545
"type": "warning"
4646
}
47-
]
47+
],
48+
"repository_url": "https://github.com/community-scripts/ProxmoxVE"
4849
}

scripts/json/add-tailscale-lxc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,6 @@
4040
"text": "Execute within the Proxmox host shell",
4141
"type": "info"
4242
}
43-
]
43+
],
44+
"repository_url": "https://github.com/community-scripts/ProxmoxVE"
4445
}

scripts/json/adguard.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,6 @@
4747
"text": "AdGuard Home can only be updated via the user interface.",
4848
"type": "info"
4949
}
50-
]
50+
],
51+
"repository_url": "https://github.com/community-scripts/ProxmoxVE"
5152
}

scripts/json/adventurelog.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,6 @@
4040
"text": "Use `cat ~/adventurelog.creds` to see login credentials.",
4141
"type": "info"
4242
}
43-
]
43+
],
44+
"repository_url": "https://github.com/community-scripts/ProxmoxVE"
4445
}

scripts/json/agentdvr.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,6 @@
3131
"username": null,
3232
"password": null
3333
},
34-
"notes": []
34+
"notes": [],
35+
"repository_url": "https://github.com/community-scripts/ProxmoxVE"
3536
}

0 commit comments

Comments
 (0)