add expense limit config

This commit is contained in:
gowthaman 2024-08-15 15:36:42 +05:30
parent 8abe607c26
commit bb169d6cc8
3 changed files with 12 additions and 0 deletions

View File

@ -300,6 +300,8 @@ open class Plant : BaseModel() {
var print: MutableMap<String, String>? = mutableMapOf()
@DbJsonB
var prefixes: MutableMap<String, String>? = mutableMapOf()
@DbJsonB
var limits: MutableMap<String, String>? = mutableMapOf()
}
class RefreshHistory {

View File

@ -0,0 +1,2 @@
-- apply alter tables
alter table plant add column if not exists limits jsonb;

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<migration xmlns="http://ebean-orm.github.io/xml/ns/dbmigration">
<changeSet type="apply">
<addColumn tableName="plant">
<column name="limits" type="jsonb"/>
</addColumn>
</changeSet>
</migration>