数据库脚本修正

This commit is contained in:
2026-07-21 18:03:47 +08:00 Unverified
parent 607b71e4f0
commit b443015943
7 changed files with 20 additions and 40 deletions
+3 -1
View File
@@ -1,3 +1,5 @@
import { CURRENT_SCHEMA_VERSION } from '../database/version.mjs';
const admissionNumberRules = (nowIso) => [
{
id: 'admit_rule_district_room_seat', code: 'district_room_seat', name: '县区编号 + 考场号 + 座位号',
@@ -63,7 +65,7 @@ export function createBaseDatabase({ nowIso, hashPassword, initialAdmin = {} })
const adminId = 'usr_admin';
const createdAt = nowIso();
return {
meta: { version: 19, createdAt },
meta: { version: CURRENT_SCHEMA_VERSION, createdAt },
settings: { selfRegistrationEnabled: false },
organization: { name: '考试服务平台', code: 'EXAM-SERVICE', phone: '', address: '' },
schools: [], classes: [],
+1
View File
@@ -0,0 +1 @@
export const CURRENT_SCHEMA_VERSION = 20;