{ "__className__": "serverpod.DatabaseMigration", "actions": [ { "__className__": "serverpod.DatabaseMigrationAction", "type": "alterTable", "alterTable": { "__className__": "serverpod.TableMigration", "name": "second_factor_failures", "schema": "public", "addColumns": [ { "__className__": "serverpod.ColumnDefinition", "name": "path", "fieldName": "path", "columnType": 0, "isNullable": false, "columnDefault": "'password'", "dartType": "protocol:SecondFactorPath" } ], "deleteColumns": [], "modifyColumns": [], "addIndexes": [ { "__className__": "serverpod.IndexDefinition", "indexName": "second_factor_failures_person_idx", "elements": [ { "__className__": "serverpod.IndexElementDefinition", "type": 0, "definition": "authUserId" }, { "__className__": "serverpod.IndexElementDefinition", "type": 0, "definition": "path" } ], "type": "btree", "isUnique": true, "isPrimary": false } ], "deleteIndexes": [ "second_factor_failures_person_idx" ], "addForeignKeys": [], "deleteForeignKeys": [], "warnings": [ { "__className__": "serverpod.DatabaseMigrationWarning", "type": "uniqueIndexCreated", "message": "Unique index \"second_factor_failures_person_idx\" is added to table \"second_factor_failures\". If there are existing rows with duplicate values, this migration will fail.", "table": "second_factor_failures", "columns": [ "authUserId", "path" ], "destrucive": false } ] } } ], "warnings": [ { "__className__": "serverpod.DatabaseMigrationWarning", "type": "uniqueIndexCreated", "message": "Unique index \"second_factor_failures_person_idx\" is added to table \"second_factor_failures\". If there are existing rows with duplicate values, this migration will fail.", "table": "second_factor_failures", "columns": [ "authUserId", "path" ], "destrucive": false } ], "migrationApiVersion": 1 }