-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
Leyendo un poco la documentación [0] observo que el argumento migrate
del metodo pydal.DAL.define_table() debería ser un booleano.
Por lo que está linea https://github.com/PyAr/OpenLex/blob/master/models/db_pydoctor.py#L242 está haciendo que
no se ejecute la migración por lo tanto a la hora de crear un movimiento tengo el siguiente error:
Esto lo soluciona
diff --git a/models/db_pydoctor.py b/models/db_pydoctor.py
index f987621..aba8746 100644
--- a/models/db_pydoctor.py
+++ b/models/db_pydoctor.py
@@ -239,7 +239,7 @@ db.define_table(
singular=T("Movimiento"),
plural=T("Movimientos"),
format='%(titulo)s',
- migrate='movimiento.table')
+ migrate=True)
db.movimiento.id.readable = db.movimiento.id.writable = False
# python web2py.py -S PyDoctor -M
[0] https://pydal.readthedocs.io/en/latest/_modules/pydal/base.html?highlight=migrate
Metadata
Metadata
Assignees
Labels
No labels
