mss_dataserver.core.database_util.add_column

mss_dataserver.core.database_util.add_column(engine, table, column, prefix)[source]

Add a column to a database table.

Parameters
  • engine (sqlalchemy.engine.Engine) – The sqlalchemy database Engine.

  • table (sqlalchemy.schema.Table) – The table to migrate.

  • column (sqlalchemy.schema.Column) – The database table column to add.

  • prefix (String) – The database table name prefix. The names of the tables contain only the basename (e.g. geom_recorder). The full table name usually contains the name of the project as a prefix.