Owen
4716a2a647
Make migration idempotent
...
Ref #3759
2026-09-16 09:08:20 -04:00
Hayyan Hajwani
9298ec7cdb
fix(setup): correct month index and zero-pad database backup file names
...
Backup names were built inline from Date#getMonth, which is zero-indexed, so a
backup taken on 12 September 2026 was written as db_2026-8-12_20-35-56.sqlite.
No field was zero-padded either, giving names like db_2026-8-12_20-36-2.sqlite.
Extract formatBackupTimestamp into server/lib and use it from both places that
built the string: the backupDb helper in migrationsSqlite.ts and the inline copy
in the 1.0.0-beta9 setup script. Padding every field also makes the names sort
lexicographically in the order the backups were taken.
Adds tests covering both reported names, single-digit padding and sort order.
Reverting the helper to the old formula fails them with the exact name from the
report.
2026-09-16 13:46:57 +05:30
miloschwartz
3cb41211ee
fix premature migration execution
2026-09-15 20:44:17 -04:00
miloschwartz
8f1344a665
bump version and add 1.23 migrations
2026-09-14 17:18:31 -04:00
Owen
a874a0b745
Add explicit process exit to prevent hanging in migrations script
2026-09-14 16:48:10 -04:00
Owen
be0dd65557
Update imports
2026-09-03 11:35:28 -04:00
miloschwartz
a47a68d8e1
update badger version
2026-08-27 11:40:46 -04:00
Owen
331fee24d4
Make the default session storage 0
2026-08-26 11:02:39 -04:00
Owen
72d2c79793
Add migration for streaming table
2026-08-25 10:42:56 -04:00
miloschwartz
a7bbafd2f0
bump badger version
2026-08-19 12:01:01 -04:00
Owen
6824ec6e3e
Clean up empty execute in migration
2026-08-19 11:51:12 -04:00
Owen
dc8e724482
Fix issue with subnets in migrations
2026-08-19 09:30:02 -04:00
Owen
1bb4f604e9
Fix select from missing new columns
2026-08-18 09:52:24 -04:00
Owen
aa8d339d35
Adjust sudo mode on the roles to full for use of ssh
2026-08-17 17:24:16 -04:00
Owen
7d10b63dc5
Add v1 migrations
2026-08-17 16:50:51 -04:00
Owen
92916cd9db
Remove wrong named 1.21.1 migration for 1.22
2026-08-17 16:01:30 -04:00
Owen
075d112861
Add base migrations
2026-08-17 15:54:42 -04:00
miloschwartz
4048fa274a
fix non admins cant see private resources details in launcher
2026-08-06 12:32:19 -04:00
miloschwartz
a0b9ea76a3
add badger to migration
2026-07-17 16:22:15 -04:00
miloschwartz
eb3a3eac98
add 1.21 migrations
2026-07-17 15:58:13 -04:00
miloschwartz
4dcf684868
add 1.20.0 migration
2026-07-07 16:04:41 -04:00
Owen
8f377a4fb2
Dont run on cloud
2026-07-01 22:07:33 -04:00
Owen
108cb6216c
Add migration to fix policy delete issues
...
Ref #3257
2026-07-01 10:39:41 -04:00
Owen
a8ca28acb2
Add default for target type
...
Fixes #3247
2026-06-12 11:29:16 -07:00
Owen
935593885a
Adjust 1.19 and add 1.19.1 to ensure sso not null
2026-06-11 22:01:20 -07:00
miloschwartz
b82b41ed26
fix migration
2026-06-11 15:02:29 -07:00
miloschwartz
a1ab8d8f35
standardize client titles
2026-06-09 21:47:15 -07:00
Owen
d870b9ff49
Drop the not null on resource columns
2026-06-09 21:36:27 -07:00
Owen
3a485f74f1
Move session migration out of the loop
2026-06-09 16:16:14 -07:00
Owen
f28571629f
Make sure the pamMode is push for host resources
2026-06-08 21:54:06 -07:00
Owen
1b7c1ffa70
Set the target port from the resource
2026-06-08 15:39:26 -07:00
Owen
69bd61c308
Update migrations
2026-06-05 16:02:28 -07:00
Owen
128db20755
Remove migration test
2026-06-02 17:13:10 -07:00
Owen
b6d688f15e
Support pin,pass,whitelist correctly on login
2026-06-01 21:34:39 -07:00
Owen
605dd2f3c9
Add tcp and udp specific pages
2026-06-01 16:05:20 -07:00
Owen
2ae4c29418
Add missing set
2026-06-01 15:27:30 -07:00
Owen
ba71016f87
Add inline policy migration
2026-06-01 15:18:40 -07:00
Owen
85c2bd807e
Handle the new added mode column
2026-06-01 14:49:41 -07:00
Owen
517e1d15c8
Add 1.19.0 migrations
2026-06-01 14:42:32 -07:00
Owen
c6a52ffc75
Dont run migration again when rc
2026-06-01 13:58:04 -07:00
Owen
efb1d69ac9
Add migration
2026-05-12 20:59:58 -07:00
Owen
7bc08c0425
If not exists on trial table
2026-05-06 20:00:23 -07:00
Owen
72e48a56df
Remove explicit call
2026-05-06 16:58:28 -07:00
Owen
ce7df5ddaa
Update log message
2026-05-06 15:19:13 -07:00
Owen
64ad7641af
Add migration
...
Fixes #2968
Fixes #2990
2026-05-04 11:35:07 -07:00
Owen
81972dbb73
Add name to migration
...
Fixes #2943
2026-04-30 10:56:12 -07:00
Owen
bc585c24fc
Calculate actual resource status
...
Fixes #2930
2026-04-29 12:07:32 -07:00
Owen
6be150bafe
Handle possible not null for tcp, udp, and icmp
...
Fixes #2929
2026-04-29 11:42:18 -07:00
Owen
85415176ab
Clean imports
2026-04-28 15:41:00 -07:00
Owen
b81ae3d998
Seed satatus data for resources, sites, and hc
2026-04-28 15:15:09 -07:00