Skip to content

Commit

Permalink
refactor(orm): 不再需要配置 orm_version_location
Browse files Browse the repository at this point in the history
  • Loading branch information
he0119 committed Sep 12, 2024
1 parent 0355ea6 commit 500f6c8
Show file tree
Hide file tree
Showing 12 changed files with 0 additions and 13 deletions.
3 changes: 0 additions & 3 deletions src/plugins/check_in/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,13 @@
require("nonebot_plugin_user")
require("nonebot_plugin_alconna")

from . import migrations

__plugin_meta__ = PluginMetadata(
name="打卡",
description="每日打卡,记录健身数据",
usage="",
supported_adapters=inherit_supported_adapters(
"nonebot_plugin_user", "nonebot_plugin_alconna"
),
extra={"orm_version_location": migrations},
)

_sub_plugins = set()
Expand Down
Empty file.
2 changes: 0 additions & 2 deletions src/plugins/cyber_hospital/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@

from src.utils.helpers import admin_permission

from . import migrations
from .data_source import Hospital

__plugin_meta__ = PluginMetadata(
Expand All @@ -48,7 +47,6 @@
supported_adapters=inherit_supported_adapters(
"nonebot_plugin_alconna", "nonebot_plugin_user"
),
extra={"orm_version_location": migrations},
)

hospital_service = Hospital()
Expand Down
Empty file.
2 changes: 0 additions & 2 deletions src/plugins/ff14/plugins/ff14_fflogs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
from src.utils.helpers import strtobool
from src.utils.permission import is_superuser

from . import migrations
from .api import fflogs
from .config import plugin_config
from .data import FFLOGS_DATA
Expand Down Expand Up @@ -50,7 +49,6 @@
supported_adapters=inherit_supported_adapters(
"nonebot_plugin_alconna", "nonebot_plugin_user"
),
extra={"orm_version_location": migrations},
)

plugin_data = get_plugin_data()
Expand Down
Empty file.
2 changes: 0 additions & 2 deletions src/plugins/morning/plugins/hello/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
from src.utils.annotated import AsyncSession
from src.utils.helpers import strtobool

from . import migrations
from .data_source import get_first_connect_message
from .models import Hello

Expand All @@ -31,7 +30,6 @@
supported_adapters=inherit_supported_adapters(
"nonebot_plugin_alconna", "nonebot_plugin_saa"
),
extra={"orm_version_location": migrations},
)

driver = nonebot.get_driver()
Expand Down
Empty file.
2 changes: 0 additions & 2 deletions src/plugins/morning/plugins/morning_greeting/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
from src.utils.annotated import AsyncSession
from src.utils.helpers import strtobool

from . import migrations
from .data_source import HOLIDAYS_DATA, get_moring_message
from .models import MorningGreeting

Expand All @@ -36,7 +35,6 @@
supported_adapters=inherit_supported_adapters(
"nonebot_plugin_alconna", "nonebot_plugin_saa"
),
extra={"orm_version_location": migrations},
)


Expand Down
Empty file.
2 changes: 0 additions & 2 deletions src/plugins/repeat/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,13 @@
require("nonebot_plugin_user")
require("nonebot_plugin_alconna")

from . import migrations
from .config import Config

__plugin_meta__ = PluginMetadata(
name="复读",
description="与复读有关的功能",
usage="与复读有关的功能",
supported_adapters={"~onebot.v11", "~onebot.v12"},
extra={"orm_version_location": migrations},
)

_sub_plugins = set()
Expand Down
Empty file.

0 comments on commit 500f6c8

Please sign in to comment.