Compare commits

..

9 Commits

Author SHA1 Message Date
Ferdinand Thiessen 507eb8d711 fix(migrations): Fix rebase issues
ci/woodpecker/push/lint Pipeline was successful Details
ci/woodpecker/push/test Pipeline was successful Details
ci/woodpecker/pr/lint Pipeline was successful Details
ci/woodpecker/pr/test Pipeline was successful Details
2022-02-23 15:24:24 +01:00
Ferdinand Thiessen 693978a5f9 fix(app): Skip plugins with not satisfied dependencies. 2022-02-23 15:24:24 +01:00
Ferdinand Thiessen 015ef353d9 fix(plugins): Fix plugin version for plugin list API endpoint 2022-02-23 15:24:24 +01:00
Ferdinand Thiessen 0bfc551450 feat(cli): Added CLI command for handling plugins
* Install / Uninstall plugins
* List plugins
2022-02-23 15:24:24 +01:00
Ferdinand Thiessen 4248405462 feat(plugins): Identify plugins by id, migrations must be provided at defined location, add utils for plugin functions 2022-02-23 15:24:24 +01:00
Ferdinand Thiessen f5c7e59162 feat(docs): Add documentation on how to install tables
Also various documentation fixed and improvments
2022-02-23 15:24:21 +01:00
Ferdinand Thiessen 5cf54c1a08 feat(db): Add migrations support to plugins
* Add initial migrations for core Flaschengeist
* Add migrations to balance
* Add migrations to pricelist
2022-02-23 15:21:37 +01:00
Ferdinand Thiessen f2ea2a8fa5 fix(db): Add __repr__ to custom column types, same as done by SQLAlchemy 2022-02-23 15:21:37 +01:00
Ferdinand Thiessen 4d972defdc feat(db): Add database migration support, implements #19
Migrations allow us to keep track of database changes and upgrading databases if needed.
2022-02-23 15:21:37 +01:00
1 changed files with 3 additions and 1 deletions

View File

@ -189,7 +189,9 @@ class Plugin:
Returns: Returns:
Dict containing version and permissions of the plugin Dict containing version and permissions of the plugin
""" """
return {"version": self.version, "permissions": self.permissions} from flaschengeist.utils.plugin import plugin_version
return {"version": plugin_version(self), "permissions": self.permissions}
class AuthPlugin(Plugin): class AuthPlugin(Plugin):