Add flask-Migrate + alembic for automated database migrations.

Update some dependencies to their latest version.
Make executable scripts executable (chmod +x).
This commit is contained in:
nyaadev
2017-05-21 17:47:16 +02:00
parent 740be1a40a
commit 152e547ac5
12 changed files with 194 additions and 16 deletions

6
db_create.py Normal file → Executable file
View File

@@ -33,9 +33,3 @@ if not existing_cats:
db.session.add(main_cat)
db.session.commit()
# Create fulltext index
if app.config['USE_MYSQL']:
db.engine.execute('ALTER TABLE ' + app.config['TABLE_PREFIX'] + 'torrents ADD FULLTEXT KEY (display_name)')