fix: appup for epgsql 4.4.0 -> 4.6.0

This commit is contained in:
DDDHuang 2022-05-20 14:14:06 +08:00
parent ae71125271
commit c10c75ce00
2 changed files with 29 additions and 14 deletions

View File

@ -1,6 +1,6 @@
{application, emqx_auth_pgsql, {application, emqx_auth_pgsql,
[{description, "EMQ X Authentication/ACL with PostgreSQL"}, [{description, "EMQ X Authentication/ACL with PostgreSQL"},
{vsn, "4.3.2"}, % strict semver, bump manually! {vsn, "4.3.3"}, % strict semver, bump manually!
{modules, []}, {modules, []},
{registered, [emqx_auth_pgsql_sup]}, {registered, [emqx_auth_pgsql_sup]},
{applications, [kernel,stdlib,epgsql,ecpool]}, {applications, [kernel,stdlib,epgsql,ecpool]},

View File

@ -1,16 +1,31 @@
%% -*- mode: erlang -*- %% -*- mode: erlang -*-
{VSN, {VSN,
[{"4.3.1", [ [
%% There are only changes to the schema file, so we don't need {"4.3.2", [
%% any commands here. %% epgsql 4.4.0 -> 4.6.0.
]}, %% epgsql has no appup ,so we can only restart it.
{"4.3.0", {restart_application, epgsql}
[{load_module,emqx_auth_pgsql_app,brutal_purge,soft_purge,[]}, ]},
{load_module,emqx_acl_pgsql,brutal_purge,soft_purge,[]}]}, {"4.3.1", [
{<<".*">>,[]}], {restart_application, epgsql}
[{"4.3.1", []}, ]},
{"4.3.0", {"4.3.0", [
[{load_module,emqx_auth_pgsql_app,brutal_purge,soft_purge,[]}, {restart_application, epgsql},
{load_module,emqx_acl_pgsql,brutal_purge,soft_purge,[]}]}, {load_module,emqx_auth_pgsql_app,brutal_purge,soft_purge,[]},
{<<".*">>,[]}] {load_module,emqx_acl_pgsql,brutal_purge,soft_purge,[]}
]},
{<<".*">>,[]}],
[
{"4.3.2", [
{restart_application, epgsql}
]},
{"4.3.1", [
{restart_application, epgsql}
]},
{"4.3.0", [
{restart_application, epgsql},
{load_module,emqx_auth_pgsql_app,brutal_purge,soft_purge,[]},
{load_module,emqx_acl_pgsql,brutal_purge,soft_purge,[]}
]},
{<<".*">>,[]}]
}. }.