mirror of
https://github.com/simon987/nyaa.git
synced 2025-12-13 15:19:03 +00:00
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:
6
db_create.py
Normal file → Executable file
6
db_create.py
Normal file → Executable 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)')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user