remame format to reset fh

This commit is contained in:
deflax 2024-04-17 14:03:20 +03:00
parent bcf2c33fc1
commit bf816721a4
2 changed files with 5 additions and 9 deletions

View file

@ -7,6 +7,5 @@
```
4. Initialize db schema using:
```sh
$ docker-compose exec forest python manage.py format_db
$ docker-compose exec forest python manage.py seed_db
$ docker-compose exec forest python manage.py reset_db
```

View file

@ -13,16 +13,13 @@ cli = FlaskGroup(app)
migrate = Migrate()
migrate.init_app(app, db)
@cli.command("format_db")
def format_db():
@cli.command("reset_db")
def reset_db():
"""delete and reset database"""
db.drop_all()
db.create_all()
db.session.commit()
@cli.command("seed_db")
def seed_db():
# create user roles
Role.insert_roles()
db.session.commit()
@cli.command("upgrade_db")
def upgrade_db():