diff options
Diffstat (limited to 'app/python/init_db.py')
-rw-r--r-- | app/python/init_db.py | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/app/python/init_db.py b/app/python/init_db.py deleted file mode 100644 index 7d48e80..0000000 --- a/app/python/init_db.py +++ /dev/null @@ -1,16 +0,0 @@ -import sys - -from rcal.db import Session -from rcal.model import BASE - - -def main(): - session = Session.create() - - if len(sys.argv) > 1 and sys.argv[1] == 'force': - BASE.metadata.drop_all(session.get_bind()) - - BASE.metadata.create_all(session.get_bind()) - -if __name__ == '__main__': - main() |