新增注册邮箱名自定义字符过滤
This commit is contained in:
@@ -24,10 +24,19 @@ const init = {
|
||||
await this.v2DB(c);
|
||||
await this.v2_3DB(c);
|
||||
await this.v2_4DB(c);
|
||||
await this.v2_5DB(c);
|
||||
await settingService.refresh(c);
|
||||
return c.text(t('initSuccess'));
|
||||
},
|
||||
|
||||
async v2_5DB(c) {
|
||||
try {
|
||||
await c.env.db.prepare(`ALTER TABLE setting ADD COLUMN email_prefix_filter text NOT NULL DEFAULT '';`).run();
|
||||
} catch (e) {
|
||||
console.error(e)
|
||||
}
|
||||
},
|
||||
|
||||
async v2_4DB(c) {
|
||||
try {
|
||||
await c.env.db.prepare(`
|
||||
@@ -54,6 +63,7 @@ const init = {
|
||||
} catch (e) {
|
||||
console.error(e)
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
async v2_3DB(c) {
|
||||
|
||||
Reference in New Issue
Block a user