refactor(vps): update vCPU, RAM, and disk fields to allow decimal values
Docker / build (push) Failing after 21s

Changed the step attribute for NumberField components in the VpsEditSheet to "any" for vCPU, RAM, and disk inputs. Updated the vpsSchema to accept real numbers for vCPU, diskGb, and bandwidthTb. Adjusted database schema to store vCPU, diskGb, and bandwidthTb as REAL instead of INTEGER for better precision.
This commit is contained in:
Denozordec
2026-07-31 16:46:26 +07:00
parent 72f9597ede
commit 53d5ed5d33
9 changed files with 572 additions and 14 deletions
+3 -3
View File
@@ -77,12 +77,12 @@ const CORE_TABLE_MIGRATIONS: string[] = [
city TEXT,
datacenter TEXT,
os TEXT,
vcpu INTEGER,
vcpu REAL,
ramGb REAL,
diskGb INTEGER,
diskGb REAL,
diskType TEXT,
virtualization TEXT,
bandwidthTb INTEGER,
bandwidthTb REAL,
sshPort INTEGER,
rootUser TEXT,
purpose TEXT,
+4 -4
View File
@@ -119,12 +119,12 @@ export const vps = sqliteTable('vps', {
city: text('city'),
datacenter: text('datacenter'),
os: text('os'),
vcpu: integer('vcpu'),
ramGb: integer('ramGb'),
diskGb: integer('diskGb'),
vcpu: real('vcpu'),
ramGb: real('ramGb'),
diskGb: real('diskGb'),
diskType: text('diskType'),
virtualization: text('virtualization'),
bandwidthTb: integer('bandwidthTb'),
bandwidthTb: real('bandwidthTb'),
sshPort: integer('sshPort'),
rootUser: text('rootUser'),
purpose: text('purpose'),
+3 -3
View File
@@ -67,12 +67,12 @@ CREATE TABLE IF NOT EXISTS vps (
city TEXT,
datacenter TEXT,
os TEXT,
vcpu INTEGER,
vcpu REAL,
ramGb REAL,
diskGb INTEGER,
diskGb REAL,
diskType TEXT,
virtualization TEXT,
bandwidthTb INTEGER,
bandwidthTb REAL,
sshPort INTEGER,
rootUser TEXT,
purpose TEXT,