Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove migration and related code #64

Merged
merged 1 commit into from
Mar 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.