Загрузка данных


	... 69 common frames omitted
	at liquibase.executor.jvm.JdbcExecutor$ExecuteStatementCallback.doInStatement(JdbcExecutor.java:441) ~[liquibase-core-4.20.0.jar!/:na]
	at com.zaxxer.hikari.pool.HikariProxyStatement.execute(HikariProxyStatement.java) ~[HikariCP-5.0.1.jar!/:na]
	at com.zaxxer.hikari.pool.ProxyStatement.execute(ProxyStatement.java:94) ~[HikariCP-5.0.1.jar!/:na]
	at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:297) ~[postgresql-42.7.3.jar!/:42.7.3]
	at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:302) ~[postgresql-42.7.3.jar!/:42.7.3]
	at org.postgresql.jdbc.PgStatement.executeCachedSql(PgStatement.java:326) ~[postgresql-42.7.3.jar!/:42.7.3]
	at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:341) ~[postgresql-42.7.3.jar!/:42.7.3]
	at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:419) ~[postgresql-42.7.3.jar!/:42.7.3]
	at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:502) ~[postgresql-42.7.3.jar!/:42.7.3]
	at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:371) ~[postgresql-42.7.3.jar!/:42.7.3]
	at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2412) ~[postgresql-42.7.3.jar!/:42.7.3]
	at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2725) ~[postgresql-42.7.3.jar!/:42.7.3]
  Position: 33
Caused by: org.postgresql.util.PSQLException: ERROR: invalid input value for enum profile_legal_type: "RESIDENT"
	... 64 common frames omitted
	at liquibase.changelog.ChangeSet.execute(ChangeSet.java:702) ~[liquibase-core-4.20.0.jar!/:na]
	at liquibase.database.AbstractJdbcDatabase.executeStatements(AbstractJdbcDatabase.java:1252) ~[liquibase-core-4.20.0.jar!/:na]
	at liquibase.database.AbstractJdbcDatabase.execute(AbstractJdbcDatabase.java:1270) ~[liquibase-core-4.20.0.jar!/:na]
	at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:160) ~[liquibase-core-4.20.0.jar!/:na]
	at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:77) ~[liquibase-core-4.20.0.jar!/:na]
	at liquibase.executor.jvm.JdbcExecutor$ExecuteStatementCallback.doInStatement(JdbcExecutor.java:445) ~[liquibase-core-4.20.0.jar!/:na]
  Position: 33 [Failed SQL: (0) update profile set legal_type = 'RESIDENT' where legal_type is null]
Caused by: liquibase.exception.DatabaseException: ERROR: invalid input value for enum profile_legal_type: "RESIDENT"
	... 44 common frames omitted
	at liquibase.changelog.ChangeLogIterator.run(ChangeLogIterator.java:75) ~[liquibase-core-4.20.0.jar!/:na]
	at liquibase.Scope.child(Scope.java:260) ~[liquibase-core-4.20.0.jar!/:na]
	at liquibase.Scope.child(Scope.java:256) ~[liquibase-core-4.20.0.jar!/:na]
	at liquibase.Scope.child(Scope.java:165) ~[liquibase-core-4.20.0.jar!/:na]
	at liquibase.Scope.child(Scope.java:186) ~[liquibase-core-4.20.0.jar!/:na]
	at liquibase.Scope.child(Scope.java:196) ~[liquibase-core-4.20.0.jar!/:na]
	at liquibase.Scope.lambda$child$0(Scope.java:187) ~[liquibase-core-4.20.0.jar!/:na]
	at liquibase.changelog.ChangeLogIterator$2.run(ChangeLogIterator.java:105) ~[liquibase-core-4.20.0.jar!/:na]
	at liquibase.Scope.child(Scope.java:256) ~[liquibase-core-4.20.0.jar!/:na]
	at liquibase.Scope.child(Scope.java:165) ~[liquibase-core-4.20.0.jar!/:na]
	at liquibase.Scope.child(Scope.java:186) ~[liquibase-core-4.20.0.jar!/:na]
	at liquibase.Scope.child(Scope.java:196) ~[liquibase-core-4.20.0.jar!/:na]
	at liquibase.Scope.lambda$child$0(Scope.java:187) ~[liquibase-core-4.20.0.jar!/:na]
	at liquibase.changelog.ChangeLogIterator$2.lambda$run$1(ChangeLogIterator.java:124) ~[liquibase-core-4.20.0.jar!/:na]
	at liquibase.Scope.child(Scope.java:165) ~[liquibase-core-4.20.0.jar!/:na]
	at liquibase.Scope.child(Scope.java:186) ~[liquibase-core-4.20.0.jar!/:na]
	at liquibase.Scope.child(Scope.java:196) ~[liquibase-core-4.20.0.jar!/:na]
	at liquibase.Scope.lambda$child$0(Scope.java:187) ~[liquibase-core-4.20.0.jar!/:na]
	at liquibase.changelog.ChangeLogIterator$2.lambda$null$0(ChangeLogIterator.java:124) ~[liquibase-core-4.20.0.jar!/:na]
	at liquibase.changelog.visitor.UpdateVisitor.visit(UpdateVisitor.java:59) ~[liquibase-core-4.20.0.jar!/:na]
	at liquibase.changelog.ChangeSet.execute(ChangeSet.java:744) ~[liquibase-core-4.20.0.jar!/:na]
  Position: 33 [Failed SQL: (0) update profile set legal_type = 'RESIDENT' where legal_type is null]
     Reason: liquibase.exception.DatabaseException: ERROR: invalid input value for enum profile_legal_type: "RESIDENT"
Caused by: liquibase.exception.MigrationFailedException: Migration failed for changeset liquibase/0.0.3/sql/2026-07-13-01-add-legal-type-to-profile.sql::2026-07-13-01-add-legal-type-to-profile::vtbct:
	... 26 common frames omitted
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1766) ~[spring-beans-6.0.13.jar!/:6.0.13]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1817) ~[spring-beans-6.0.13.jar!/:6.0.13]
	at liquibase.integration.spring.SpringLiquibase.afterPropertiesSet(SpringLiquibase.java:284) ~[liquibase-core-4.20.0.jar!/:na]
	at liquibase.integration.spring.SpringLiquibase.performUpdate(SpringLiquibase.java:329) ~[liquibase-core-4.20.0.jar!/:na]
	at liquibase.Liquibase.update(Liquibase.java:221) ~[liquibase-core-4.20.0.jar!/:na]
	at liquibase.Liquibase.update(Liquibase.java:236) ~[liquibase-core-4.20.0.jar!/:na]
	at liquibase.Liquibase.runInScope(Liquibase.java:2639) ~[liquibase-core-4.20.0.jar!/:na]
	at liquibase.Scope.child(Scope.java:165) ~[liquibase-core-4.20.0.jar!/:na]
	at liquibase.Scope.child(Scope.java:186) ~[liquibase-core-4.20.0.jar!/:na]
	at liquibase.Scope.child(Scope.java:196) ~[liquibase-core-4.20.0.jar!/:na]
	at liquibase.Scope.lambda$child$0(Scope.java:187) ~[liquibase-core-4.20.0.jar!/:na]
	at liquibase.Liquibase.lambda$update$1(Liquibase.java:295) ~[liquibase-core-4.20.0.jar!/:na]
	at liquibase.Scope.child(Scope.java:256) ~[liquibase-core-4.20.0.jar!/:na]
	at liquibase.Scope.child(Scope.java:165) ~[liquibase-core-4.20.0.jar!/:na]
	at liquibase.Scope.child(Scope.java:186) ~[liquibase-core-4.20.0.jar!/:na]
	at liquibase.Scope.child(Scope.java:196) ~[liquibase-core-4.20.0.jar!/:na]
	at liquibase.Scope.lambda$child$0(Scope.java:187) ~[liquibase-core-4.20.0.jar!/:na]
	at liquibase.Liquibase.lambda$null$0(Liquibase.java:297) ~[liquibase-core-4.20.0.jar!/:na]
	at liquibase.changelog.ChangeLogIterator.run(ChangeLogIterator.java:136) ~[liquibase-core-4.20.0.jar!/:na]
  Position: 33 [Failed SQL: (0) update profile set legal_type = 'RESIDENT' where legal_type is null]
     Reason: liquibase.exception.DatabaseException: ERROR: invalid input value for enum profile_legal_type: "RESIDENT"
Caused by: liquibase.exception.LiquibaseException: liquibase.exception.MigrationFailedException: Migration failed for changeset liquibase/0.0.3/sql/2026-07-13-01-add-legal-type-to-profile.sql::2026-07-13-01-add-legal-type-to-profile::vtbct:
	at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:65) ~[app.jar:0.0.1-SNAPSHOT]
	at org.springframework.boot.loader.Launcher.launch(Launcher.java:58) ~[app.jar:0.0.1-SNAPSHOT]
	at org.springframework.boot.loader.Launcher.launch(Launcher.java:95) ~[app.jar:0.0.1-SNAPSHOT]
	at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49) ~[app.jar:0.0.1-SNAPSHOT]
	at java.base/java.lang.reflect.Method.invoke(Method.java:569) ~[na:na]
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na]
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[na:na]
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]
	at ru.masterchain.profiles.MainApplication.main(MainApplication.java:17) ~[classes!/:0.0.1-SNAPSHOT]
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1295) ~[spring-boot-3.1.5.jar!/:3.1.5]
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1306) ~[spring-boot-3.1.5.jar!/:3.1.5]
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:316) ~[spring-boot-3.1.5.jar!/:3.1.5]
	at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:440) ~[spring-boot-3.1.5.jar!/:3.1.5]
	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:738) ~[spring-boot-3.1.5.jar!/:3.1.5]
	at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:146) ~[spring-boot-3.1.5.jar!/:3.1.5]
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:616) ~[spring-context-6.0.13.jar!/:6.0.13]
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:940) ~[spring-context-6.0.13.jar!/:6.0.13]
	at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1166) ~[spring-context-6.0.13.jar!/:6.0.13]
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[spring-beans-6.0.13.jar!/:6.0.13]
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:312) ~[spring-beans-6.0.13.jar!/:6.0.13]
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[spring-beans-6.0.13.jar!/:6.0.13]
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:323) ~[spring-beans-6.0.13.jar!/:6.0.13]
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-6.0.13.jar!/:6.0.13]
	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:325) ~[spring-beans-6.0.13.jar!/:6.0.13]



	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:520) ~[spring-beans-6.0.13.jar!/:6.0.13]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:598) ~[spring-beans-6.0.13.jar!/:6.0.13]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1770) ~[spring-beans-6.0.13.jar!/:6.0.13]
  Position: 33 [Failed SQL: (0) update profile set legal_type = 'RESIDENT' where legal_type is null]
     Reason: liquibase.exception.DatabaseException: ERROR: inv