bwangll opened a new pull request, #6311:
URL: https://github.com/apache/shenyu/pull/6311

    ## Summary
     Closes #6310
     - Align 6 `PluginEnum.getCode()` values with their corresponding `sort` 
values in `db/init/mysql/schema.sql`:
       - `KEY_AUTH`: 430 → 150 (Authentication phase)
       - `RESILIENCE4J`: 150 → 310 (FaultTolerance phase)
       - `BASIC_AUTH`: 35 → 150 (Authentication phase)
       - `TCP`: 0 → 320 (Proxy phase)
       - `MQTT`: 0 → 125 (Proxy phase)
       - `MOCK`: 8 → 1 (Mock phase)
     - Fix H2 schema `basicAuth` sort value from 500 to 150 to match 
MySQL/PostgreSQL/Oracle
     - Add parameterized unit test to prevent future drift between PluginEnum 
and DB schema
   
     ## Test plan
   
     - [x] PluginEnumTest passes (including the new drift-prevention test)
     - [x] Checkstyle passes on shenyu-common
     - [x] Verified all DB schemas (MySQL, PostgreSQL, Oracle, H2, OceanBase, 
openGauss) are now consistent


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to