Skip to content

Commit

Permalink
remove migration and related code (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
eibex committed Mar 2, 2021
1 parent e5203cb commit ef20cc6
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 157 deletions.
20 changes: 1 addition & 19 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,11 @@
import discord
from discord.ext import commands, tasks

from core import database, migration, activity, github, schema
from core import database, activity, github, schema


directory = os.path.dirname(os.path.realpath(__file__))

migrated = migration.migrate()
config_migrated = migration.migrateconfig()

with open(f"{directory}/.version") as f:
__version__ = f.read().rstrip("\n").rstrip("\r")

Expand Down Expand Up @@ -404,21 +401,6 @@ async def check_cleanup_queued_guilds():
@bot.event
async def on_ready():
print("Reaction Light ready!")
if migrated:
await system_notification(
None,
"Your CSV files have been deleted and migrated to an SQLite"
" `reactionlight.db` file.",
)

if config_migrated:
await system_notification(
None,
"Your `config.ini` has been edited and your admin IDs are now stored in"
f" the database.\nYou can add or remove them with `{prefix}admin` and"
f" `{prefix}rm-admin`.",
)

await database_updates()
maintain_presence.start()
cleandb.start()
Expand Down
2 changes: 0 additions & 2 deletions core/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
from .migration import *
from .activity import *
from .migration import *
from .database import *
from .github import *
from .schema import *
136 changes: 0 additions & 136 deletions core/migration.py

This file was deleted.

0 comments on commit ef20cc6

Please sign in to comment.