cesium-ml / baselayer

Fully customizable (scientific, compute-intensive) web application template
http://cesium-ml.org/baselayer/
30 stars 18 forks source link

Refresh tables using migration manager #271

Closed stefanv closed 2 years ago

stefanv commented 2 years ago

Requires the following patch to skyportal once merged:

-    # If tables are found in the database, new tables will only be added
-    # in debug mode.  In production, we leave the tables alone, since
-    # migrations might be used.
-    create_tables(add=env.debug)
     model_util.refresh_enums()

Follows up on https://github.com/skyportal/skyportal/pull/2564 and closes https://github.com/skyportal/skyportal/issues/1802