class org.flywaydb.core.Flyway$1 implements org.flywaydb.core.Flyway$Command<java.lang.Integer>
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.flywaydb.core.Flyway$1
super_class: java.lang.Object
{
final org.flywaydb.core.Flyway this$0;
descriptor: Lorg/flywaydb/core/Flyway;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
void <init>(org.flywaydb.core.Flyway);
descriptor: (Lorg/flywaydb/core/Flyway;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 0: aload 0
aload 1
putfield org.flywaydb.core.Flyway$1.this$0:Lorg/flywaydb/core/Flyway;
aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/flywaydb/core/Flyway$1;
MethodParameters:
Name Flags
this$0 final
public java.lang.Integer execute(org.flywaydb.core.api.resolver.MigrationResolver, org.flywaydb.core.internal.schemahistory.SchemaHistory, org.flywaydb.core.internal.database.base.Database, org.flywaydb.core.internal.database.base.Schema[], org.flywaydb.core.internal.callback.CallbackExecutor);
descriptor: (Lorg/flywaydb/core/api/resolver/MigrationResolver;Lorg/flywaydb/core/internal/schemahistory/SchemaHistory;Lorg/flywaydb/core/internal/database/base/Database;[Lorg/flywaydb/core/internal/database/base/Schema;Lorg/flywaydb/core/internal/callback/CallbackExecutor;)Ljava/lang/Integer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=11, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
getfield org.flywaydb.core.Flyway$1.this$0:Lorg/flywaydb/core/Flyway;
getfield org.flywaydb.core.Flyway.configuration:Lorg/flywaydb/core/api/configuration/ClassicConfiguration;
invokevirtual org.flywaydb.core.api.configuration.ClassicConfiguration.isValidateOnMigrate:()Z
ifeq 4
1: aload 0
getfield org.flywaydb.core.Flyway$1.this$0:Lorg/flywaydb/core/Flyway;
aload 3
aload 1
aload 2
aload 4
aload 5
2: iconst_1
3: invokevirtual org.flywaydb.core.Flyway.doValidate:(Lorg/flywaydb/core/internal/database/base/Database;Lorg/flywaydb/core/api/resolver/MigrationResolver;Lorg/flywaydb/core/internal/schemahistory/SchemaHistory;[Lorg/flywaydb/core/internal/database/base/Schema;Lorg/flywaydb/core/internal/callback/CallbackExecutor;Z)V
4: StackMap locals:
StackMap stack:
aload 2
invokevirtual org.flywaydb.core.internal.schemahistory.SchemaHistory.exists:()Z
ifne 24
5: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 6
start local 6 6: aload 4
dup
astore 10
arraylength
istore 9
iconst_0
istore 8
goto 11
StackMap locals: org.flywaydb.core.Flyway$1 org.flywaydb.core.api.resolver.MigrationResolver org.flywaydb.core.internal.schemahistory.SchemaHistory org.flywaydb.core.internal.database.base.Database org.flywaydb.core.internal.database.base.Schema[] org.flywaydb.core.internal.callback.CallbackExecutor java.util.List top int int org.flywaydb.core.internal.database.base.Schema[]
StackMap stack:
7: aload 10
iload 8
aaload
astore 7
start local 7 8: aload 7
invokevirtual org.flywaydb.core.internal.database.base.Schema.exists:()Z
ifeq 10
aload 7
invokevirtual org.flywaydb.core.internal.database.base.Schema.empty:()Z
ifne 10
9: aload 6
aload 7
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 7 10: StackMap locals:
StackMap stack:
iinc 8 1
StackMap locals:
StackMap stack:
11: iload 8
iload 9
if_icmplt 7
12: aload 6
invokeinterface java.util.List.isEmpty:()Z
ifne 22
13: aload 0
getfield org.flywaydb.core.Flyway$1.this$0:Lorg/flywaydb/core/Flyway;
getfield org.flywaydb.core.Flyway.configuration:Lorg/flywaydb/core/api/configuration/ClassicConfiguration;
invokevirtual org.flywaydb.core.api.configuration.ClassicConfiguration.isBaselineOnMigrate:()Z
ifeq 16
14: aload 0
getfield org.flywaydb.core.Flyway$1.this$0:Lorg/flywaydb/core/Flyway;
aload 2
aload 5
invokevirtual org.flywaydb.core.Flyway.doBaseline:(Lorg/flywaydb/core/internal/schemahistory/SchemaHistory;Lorg/flywaydb/core/internal/callback/CallbackExecutor;)V
15: goto 24
16: StackMap locals: org.flywaydb.core.Flyway$1 org.flywaydb.core.api.resolver.MigrationResolver org.flywaydb.core.internal.schemahistory.SchemaHistory org.flywaydb.core.internal.database.base.Database org.flywaydb.core.internal.database.base.Schema[] org.flywaydb.core.internal.callback.CallbackExecutor java.util.List
StackMap stack:
aload 2
invokevirtual org.flywaydb.core.internal.schemahistory.SchemaHistory.exists:()Z
ifne 24
17: new org.flywaydb.core.api.FlywayException
dup
new java.lang.StringBuilder
dup
ldc "Found non-empty schema(s) "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
18: aload 6
invokestatic org.flywaydb.core.internal.util.StringUtils.collectionToCommaDelimitedString:(Ljava/util/Collection;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
19: ldc " but no schema history table. Use baseline()"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
20: ldc " or set baselineOnMigrate to true to initialize the schema history table."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
21: invokespecial org.flywaydb.core.api.FlywayException.<init>:(Ljava/lang/String;)V
athrow
22: StackMap locals:
StackMap stack:
new org.flywaydb.core.internal.command.DbSchemas
dup
aload 3
aload 4
aload 2
invokespecial org.flywaydb.core.internal.command.DbSchemas.<init>:(Lorg/flywaydb/core/internal/database/base/Database;[Lorg/flywaydb/core/internal/database/base/Schema;Lorg/flywaydb/core/internal/schemahistory/SchemaHistory;)V
iconst_0
invokevirtual org.flywaydb.core.internal.command.DbSchemas.create:(Z)V
23: aload 2
iconst_0
invokevirtual org.flywaydb.core.internal.schemahistory.SchemaHistory.create:(Z)V
end local 6 24: StackMap locals:
StackMap stack:
new org.flywaydb.core.internal.command.DbMigrate
dup
aload 3
aload 2
aload 4
iconst_0
aaload
aload 1
aload 0
getfield org.flywaydb.core.Flyway$1.this$0:Lorg/flywaydb/core/Flyway;
getfield org.flywaydb.core.Flyway.configuration:Lorg/flywaydb/core/api/configuration/ClassicConfiguration;
25: aload 5
26: invokespecial org.flywaydb.core.internal.command.DbMigrate.<init>:(Lorg/flywaydb/core/internal/database/base/Database;Lorg/flywaydb/core/internal/schemahistory/SchemaHistory;Lorg/flywaydb/core/internal/database/base/Schema;Lorg/flywaydb/core/api/resolver/MigrationResolver;Lorg/flywaydb/core/api/configuration/Configuration;Lorg/flywaydb/core/internal/callback/CallbackExecutor;)V
27: invokevirtual org.flywaydb.core.internal.command.DbMigrate.migrate:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
28: areturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 29 0 this Lorg/flywaydb/core/Flyway$1;
0 29 1 migrationResolver Lorg/flywaydb/core/api/resolver/MigrationResolver;
0 29 2 schemaHistory Lorg/flywaydb/core/internal/schemahistory/SchemaHistory;
0 29 3 database Lorg/flywaydb/core/internal/database/base/Database;
0 29 4 schemas [Lorg/flywaydb/core/internal/database/base/Schema;
0 29 5 callbackExecutor Lorg/flywaydb/core/internal/callback/CallbackExecutor;
6 24 6 nonEmptySchemas Ljava/util/List<Lorg/flywaydb/core/internal/database/base/Schema;>;
8 10 7 schema Lorg/flywaydb/core/internal/database/base/Schema;
MethodParameters:
Name Flags
migrationResolver
schemaHistory
database
schemas
callbackExecutor
public java.lang.Object execute(org.flywaydb.core.api.resolver.MigrationResolver, org.flywaydb.core.internal.schemahistory.SchemaHistory, org.flywaydb.core.internal.database.base.Database, org.flywaydb.core.internal.database.base.Schema[], org.flywaydb.core.internal.callback.CallbackExecutor);
descriptor: (Lorg/flywaydb/core/api/resolver/MigrationResolver;Lorg/flywaydb/core/internal/schemahistory/SchemaHistory;Lorg/flywaydb/core/internal/database/base/Database;[Lorg/flywaydb/core/internal/database/base/Schema;Lorg/flywaydb/core/internal/callback/CallbackExecutor;)Ljava/lang/Object;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=6, locals=6, args_size=6
0: aload 0
aload 1
aload 2
aload 3
aload 4
aload 5
invokevirtual org.flywaydb.core.Flyway$1.execute:(Lorg/flywaydb/core/api/resolver/MigrationResolver;Lorg/flywaydb/core/internal/schemahistory/SchemaHistory;Lorg/flywaydb/core/internal/database/base/Database;[Lorg/flywaydb/core/internal/database/base/Schema;Lorg/flywaydb/core/internal/callback/CallbackExecutor;)Ljava/lang/Integer;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Ljava/lang/Object;Lorg/flywaydb/core/Flyway$Command<Ljava/lang/Integer;>;
SourceFile: "Flyway.java"
EnclosingMethod: org.flywaydb.core.Flyway.migrate:()I
NestHost: org.flywaydb.core.Flyway
InnerClasses:
org.flywaydb.core.Flyway$1
abstract Command = org.flywaydb.core.Flyway$Command of org.flywaydb.core.Flyway