fix: 修正 permission 表列名 — permcode→path, permname→name

对照 rbac/models/permission.json 确认:
- path (原 permcode)
- name (原 permname)
- permtype ✓
- id ✓
This commit is contained in:
yumoqing 2026-07-01 15:05:42 +08:00
parent c0c598ff15
commit 2068b066e3

View File

@ -41,12 +41,12 @@ async def main():
) )
if len(r) == 0: if len(r) == 0:
await sor.sqlExe( await sor.sqlExe(
'''insert into permission (id, path, permname, permtype) '''insert into permission (id, path, name, permtype)
values (${id}$, ${path}$, ${permname}$, ${permtype}$)''', values (${id}$, ${path}$, ${name}$, ${permtype}$)''',
{ {
'id': getID(), 'id': getID(),
'path': path, 'path': path,
'permname': path, 'name': path,
'permtype': role, 'permtype': role,
} }
) )