Skip to content

Commit 11759d8

Browse files
committed
re-added base.py to Examples/Lemon-App/
1 parent a2ebfc7 commit 11759d8

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

examples/Lemon-App/base.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
from Lemon.orm import DBManager, migrations
2+
3+
baseModel = DBManager.baseModel
4+
ClassBase = DBManager.base
5+
migrate = migrations.MigrateCommand
6+
7+
class model(baseModel):
8+
base_model = ClassBase
9+
tablename = "model"
10+
fields = ("field1", "field2")
11+
12+
model_list = [model]
13+
14+
migrate(model_list).migrate()

0 commit comments

Comments
 (0)