ActivityWatch / ActivityWatch/aw-core
Creating new table in peewee database
- Ngôn ngữ chính
- Python
- Star
- 65
- Fork
- 72
- Merge trung bình
- 2 ngày 3 giờ
- Pull request đã merge (30 ngày)
- 5
Mô tả
I've created a new table in the peewee.py file. I've tried both make build and make install in aw-core, yet it doesn't seem like the peewee file ever runs the code. I've looked into the source code and couldn't find when the PeeweeStorage was initialized. Any idea on how to get the file to run manually?
Code below:
if not BucketModel.table_exists():
BucketModel.create_table()
if not EventModel.table_exists():
EventModel.create_table()
if not TestModel.table_exists():
TestModel.create_table()
self.update_bucket_keys()
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.