feat: add arch to database
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
-- AlterTable
|
||||
ALTER TABLE "Setting" ADD COLUMN "arch" TEXT;
|
||||
@@ -13,6 +13,7 @@ model Setting {
|
||||
fqdn String? @unique
|
||||
ipv4 String?
|
||||
ipv6 String?
|
||||
arch String?
|
||||
isRegistrationEnabled Boolean @default(false)
|
||||
dualCerts Boolean @default(false)
|
||||
minPort Int @default(9000)
|
||||
|
||||
@@ -24,7 +24,8 @@ async function main() {
|
||||
data: {
|
||||
isRegistrationEnabled: true,
|
||||
proxyPassword: encrypt(generatePassword()),
|
||||
proxyUser: cuid()
|
||||
proxyUser: cuid(),
|
||||
arch: process.arch
|
||||
}
|
||||
});
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user