Rename script for resetting the database.
Renamed this script because it's current name is misleading. It does not just remove sample data; it truncates every table except the alembic version table and `permission_sets`.
This commit is contained in:
parent
f40ce3d1aa
commit
7e468f8ac6
@ -11,7 +11,7 @@ from atst.database import db
|
||||
from atst.app import make_config, make_app
|
||||
|
||||
|
||||
def remove_sample_data():
|
||||
def reset_database():
|
||||
conn = db.engine.connect()
|
||||
|
||||
meta = sqlalchemy.MetaData(bind=conn, reflect=True)
|
||||
@ -32,4 +32,4 @@ if __name__ == "__main__":
|
||||
config = make_config({"DISABLE_CRL_CHECK": True, "DEBUG": False})
|
||||
app = make_app(config)
|
||||
with app.app_context():
|
||||
remove_sample_data()
|
||||
reset_database()
|
Loading…
x
Reference in New Issue
Block a user