Skip to content

Commit

Permalink
re-added base.py to Examples/Lemon-App/
Browse files Browse the repository at this point in the history
  • Loading branch information
Sas2k committed Oct 5, 2022
1 parent a2ebfc7 commit 11759d8
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions examples/Lemon-App/base.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
from Lemon.orm import DBManager, migrations

baseModel = DBManager.baseModel
ClassBase = DBManager.base
migrate = migrations.MigrateCommand

class model(baseModel):
base_model = ClassBase
tablename = "model"
fields = ("field1", "field2")

model_list = [model]

migrate(model_list).migrate()

0 comments on commit 11759d8

Please sign in to comment.