Commit 582a4b7
committed
enhance: consolidate wp_options into serialized arrays
Reduce ~18 individual wp_options rows to 5 by storing settings in
serialized arrays (workos_production, workos_staging, workos_global)
plus two standalone rows (workos_active_environment, workos_db_version).
Adds stellarwp/arrays dependency for Arr::get/set helpers and an
Options abstraction layer (Options\Production, Staging, Global_Options)
registered as container singletons. Includes v3 schema migration that
consolidates existing individual options into the new format.1 parent 0c2547e commit 582a4b7
14 files changed
Lines changed: 760 additions & 140 deletions
File tree
- src/WorkOS
- Admin
- Database
- Options
- Sync
- tests/wpunit
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
| 65 | + | |
64 | 66 | | |
65 | 67 | | |
66 | 68 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments