camptocamp / c2cgeoportal

c2cgeoportal application
http://geomapfish.org
Other
64 stars 46 forks source link

Problem with pre upgrade database scripts #2714

Closed gnerred closed 7 years ago

gnerred commented 7 years ago

On version 2.1.0.dev25 :

dgnerre@cartoriviera3:/var/www/vhosts/cartoriviera_preprod/private/cartoriviera_geomapfish_v2/cartoriviera_geomapfish$ .build/venv/bin/alembic --config alembic.ini upgrade 7d271f4527cd
INFO  [alembic.runtime.migration] Context impl PostgresqlImpl.
INFO  [alembic.runtime.migration] Will assume transactional DDL.
ERROR [alembic.util.messaging] Destination 7d271f4527cd is not a valid upgrade target from current head(s)
  FAILED: Destination 7d271f4527cd is not a valid upgrade target from current head(s)
dgnerre@cartoriviera3:/var/www/vhosts/cartoriviera_preprod/private/cartoriviera_geomapfish_v2/cartoriviera_geomapfish$ .build/venv/bin/treeitem_uniquename
No handlers could be found for logger "c2cgeoportal.pyramid_"
sbrunner commented 7 years ago

Yes it's because it's normally a point you already apply.

In fact alembic detect that the version is older than the version you already have ant he don't apply a downgrade when we specify that that we want to to an upgrade :-)

gnerred commented 7 years ago

Ok