170 lines
5 KiB
JSON
170 lines
5 KiB
JSON
|
|
{
|
||
|
|
"__className__": "serverpod.DatabaseMigration",
|
||
|
|
"actions": [
|
||
|
|
{
|
||
|
|
"__className__": "serverpod.DatabaseMigrationAction",
|
||
|
|
"type": "createTable",
|
||
|
|
"createTable": {
|
||
|
|
"__className__": "serverpod.TableDefinition",
|
||
|
|
"name": "assistant_budget",
|
||
|
|
"dartName": "AssistantBudget",
|
||
|
|
"module": "halkyon_base",
|
||
|
|
"schema": "public",
|
||
|
|
"columns": [
|
||
|
|
{
|
||
|
|
"__className__": "serverpod.ColumnDefinition",
|
||
|
|
"name": "id",
|
||
|
|
"fieldName": "id",
|
||
|
|
"columnType": 6,
|
||
|
|
"isNullable": false,
|
||
|
|
"columnDefault": "serial",
|
||
|
|
"dartType": "int?"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"__className__": "serverpod.ColumnDefinition",
|
||
|
|
"name": "authUserId",
|
||
|
|
"fieldName": "authUserId",
|
||
|
|
"columnType": 7,
|
||
|
|
"isNullable": false,
|
||
|
|
"dartType": "UuidValue"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"__className__": "serverpod.ColumnDefinition",
|
||
|
|
"name": "dailyCostMicros",
|
||
|
|
"fieldName": "dailyCostMicros",
|
||
|
|
"columnType": 6,
|
||
|
|
"isNullable": true,
|
||
|
|
"dartType": "int?"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"__className__": "serverpod.ColumnDefinition",
|
||
|
|
"name": "monthlyCostMicros",
|
||
|
|
"fieldName": "monthlyCostMicros",
|
||
|
|
"columnType": 6,
|
||
|
|
"isNullable": true,
|
||
|
|
"dartType": "int?"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"__className__": "serverpod.ColumnDefinition",
|
||
|
|
"name": "dailyTokens",
|
||
|
|
"fieldName": "dailyTokens",
|
||
|
|
"columnType": 6,
|
||
|
|
"isNullable": true,
|
||
|
|
"dartType": "int?"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"__className__": "serverpod.ColumnDefinition",
|
||
|
|
"name": "monthlyTokens",
|
||
|
|
"fieldName": "monthlyTokens",
|
||
|
|
"columnType": 6,
|
||
|
|
"isNullable": true,
|
||
|
|
"dartType": "int?"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"foreignKeys": [],
|
||
|
|
"indexes": [
|
||
|
|
{
|
||
|
|
"__className__": "serverpod.IndexDefinition",
|
||
|
|
"indexName": "assistant_budget_person_idx",
|
||
|
|
"elements": [
|
||
|
|
{
|
||
|
|
"__className__": "serverpod.IndexElementDefinition",
|
||
|
|
"type": 0,
|
||
|
|
"definition": "authUserId"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"type": "btree",
|
||
|
|
"isUnique": true,
|
||
|
|
"isPrimary": false
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"managed": true
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"__className__": "serverpod.DatabaseMigrationAction",
|
||
|
|
"type": "alterTable",
|
||
|
|
"alterTable": {
|
||
|
|
"__className__": "serverpod.TableMigration",
|
||
|
|
"name": "assistant_grant",
|
||
|
|
"schema": "public",
|
||
|
|
"addColumns": [],
|
||
|
|
"deleteColumns": [
|
||
|
|
"limitUnit",
|
||
|
|
"dailyLimit",
|
||
|
|
"monthlyLimit"
|
||
|
|
],
|
||
|
|
"modifyColumns": [],
|
||
|
|
"addIndexes": [],
|
||
|
|
"deleteIndexes": [],
|
||
|
|
"addForeignKeys": [],
|
||
|
|
"deleteForeignKeys": [],
|
||
|
|
"warnings": [
|
||
|
|
{
|
||
|
|
"__className__": "serverpod.DatabaseMigrationWarning",
|
||
|
|
"type": "columnDropped",
|
||
|
|
"message": "Column \"limitUnit\" of table \"assistant_grant\" will be dropped.",
|
||
|
|
"table": "assistant_grant",
|
||
|
|
"columns": [
|
||
|
|
"limitUnit"
|
||
|
|
],
|
||
|
|
"destrucive": true
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"__className__": "serverpod.DatabaseMigrationWarning",
|
||
|
|
"type": "columnDropped",
|
||
|
|
"message": "Column \"dailyLimit\" of table \"assistant_grant\" will be dropped.",
|
||
|
|
"table": "assistant_grant",
|
||
|
|
"columns": [
|
||
|
|
"dailyLimit"
|
||
|
|
],
|
||
|
|
"destrucive": true
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"__className__": "serverpod.DatabaseMigrationWarning",
|
||
|
|
"type": "columnDropped",
|
||
|
|
"message": "Column \"monthlyLimit\" of table \"assistant_grant\" will be dropped.",
|
||
|
|
"table": "assistant_grant",
|
||
|
|
"columns": [
|
||
|
|
"monthlyLimit"
|
||
|
|
],
|
||
|
|
"destrucive": true
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"warnings": [
|
||
|
|
{
|
||
|
|
"__className__": "serverpod.DatabaseMigrationWarning",
|
||
|
|
"type": "columnDropped",
|
||
|
|
"message": "Column \"limitUnit\" of table \"assistant_grant\" will be dropped.",
|
||
|
|
"table": "assistant_grant",
|
||
|
|
"columns": [
|
||
|
|
"limitUnit"
|
||
|
|
],
|
||
|
|
"destrucive": true
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"__className__": "serverpod.DatabaseMigrationWarning",
|
||
|
|
"type": "columnDropped",
|
||
|
|
"message": "Column \"dailyLimit\" of table \"assistant_grant\" will be dropped.",
|
||
|
|
"table": "assistant_grant",
|
||
|
|
"columns": [
|
||
|
|
"dailyLimit"
|
||
|
|
],
|
||
|
|
"destrucive": true
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"__className__": "serverpod.DatabaseMigrationWarning",
|
||
|
|
"type": "columnDropped",
|
||
|
|
"message": "Column \"monthlyLimit\" of table \"assistant_grant\" will be dropped.",
|
||
|
|
"table": "assistant_grant",
|
||
|
|
"columns": [
|
||
|
|
"monthlyLimit"
|
||
|
|
],
|
||
|
|
"destrucive": true
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"migrationApiVersion": 1
|
||
|
|
}
|