dazzling-byte-52267
08/18/2023, 3:55 PM104ms❯ docker logs stack-keto-migrate-1
time=2023-08-18T15:54:18Z level=info msg=No tracer configured - skipping tracing setup audience=application service_name=Ory Keto service_version=v0.11.1-alpha.0
Current status:
Version Name Status
20150100000001000000 networks Pending
20201110175414000000 relationtuple Pending
20201110175414000001 relationtuple Pending
20210623162417000000 relationtuple Pending
20210623162417000001 relationtuple Pending
20210623162417000002 relationtuple Pending
20210623162417000003 relationtuple Pending
20210914134624000000 legacy-cleanup Pending
20220217152313000000 nid_fk Pending
20220512151000000000 indices Pending
20220513200300000000 create-intermediary-uuid-table Pending
time=2023-08-18T15:54:18Z level=debug msg=Checking if legacy migration table exists. audience=application migration_table=schema_migration service_name=Ory Keto service_version=v0.11.1-alpha.0
20220513200400000000 create-uuid-mapping-table Pending
20220513200400000001 uuid-mapping-remove-check Pending
20220513200500000000 migrate-strings-to-uuids Pending
20220513200600000000 drop-old-non-uuid-table Pending
20220513200600000001 drop-old-non-uuid-table Pending
20230228091200000000 add-on-delete-cascade-to-relationship Pending
Applying migrations...
time=2023-08-18T15:54:18Z level=debug msg=A migration table exists, checking if it is a transactional migration table. audience=application migration_table=schema_migration service_name=Ory Keto service_version=v0.11.1-alpha.0
time=2023-08-18T15:54:18Z level=debug msg=Migration tables exist and are up to date. audience=application migration_table=schema_migration service_name=Ory Keto service_version=v0.11.1-alpha.0
time=2023-08-18T15:54:18Z level=debug msg=Migration has not been applied but it might be a legacy migration, investigating. audience=application service_name=Ory Keto service_version=v0.11.1-alpha.0 version=20150100000001000000
time=2023-08-18T15:54:18Z level=debug msg=Migration has not yet been applied, running migration. audience=application service_name=Ory Keto service_version=v0.11.1-alpha.0 version=20150100000001000000
time=2023-08-18T15:54:18Z level=debug msg=0.0131 seconds audience=application service_name=Ory Keto service_version=v0.11.1-alpha.0
Could not apply migrations: ERROR: relation "networks" already exists (SQLSTATE 42P07)
error executing migrations/sql/20150100000001000000_networks.postgres.up.sql, sql: CREATE TABLE "networks" (
"id" UUID NOT NULL,
PRIMARY KEY("id"),
"created_at" timestamp NOT NULL,
"updated_at" timestamp NOT NULL
);
<http://github.com/ory/x/popx.NewMigrationBox.func1.1|github.com/ory/x/popx.NewMigrationBox.func1.1>
/go/pkg/mod/github.com/ory/x@v0.0.543/popx/migration_box.go:161
<http://github.com/ory/x/popx.Migration.Run|github.com/ory/x/popx.Migration.Run>
/go/pkg/mod/github.com/ory/x@v0.0.543/popx/migration_info.go:37
<http://github.com/ory/x/popx.(*Migrator).UpTo.func1.2|github.com/ory/x/popx.(*Migrator).UpTo.func1.2>
/go/pkg/mod/github.com/ory/x@v0.0.543/popx/migrator.go:149
<http://github.com/ory/x/popx.(*Migrator).isolatedTransaction|github.com/ory/x/popx.(*Migrator).isolatedTransaction>
/go/pkg/mod/github.com/ory/x@v0.0.543/popx/migrator.go:323
<http://github.com/ory/x/popx.(*Migrator).UpTo.func1|github.com/ory/x/popx.(*Migrator).UpTo.func1>
/go/pkg/mod/github.com/ory/x@v0.0.543/popx/migrator.go:148
<http://github.com/ory/x/popx.(*Migrator).exec|github.com/ory/x/popx.(*Migrator).exec>
/go/pkg/mod/github.com/ory/x@v0.0.543/popx/migrator.go:567
<http://github.com/ory/x/popx.(*Migrator).UpTo|github.com/ory/x/popx.(*Migrator).UpTo>
/go/pkg/mod/github.com/ory/x@v0.0.543/popx/migrator.go:102
<http://github.com/ory/x/popx.(*Migrator).Up|github.com/ory/x/popx.(*Migrator).Up>
/go/pkg/mod/github.com/ory/x@v0.0.543/popx/migrator.go:88
<http://github.com/ory/keto/cmd/migrate.BoxUp|github.com/ory/keto/cmd/migrate.BoxUp>
/project/cmd/migrate/up.go:91
<http://github.com/ory/keto/cmd/migrate.newUpCmd.func1|github.com/ory/keto/cmd/migrate.newUpCmd.func1>
/project/cmd/migrate/up.go:50
<http://github.com/spf13/cobra.(*Command).execute|github.com/spf13/cobra.(*Command).execute>
/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:916
<http://github.com/spf13/cobra.(*Command).ExecuteC|github.com/spf13/cobra.(*Command).ExecuteC>
/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:1044
<http://github.com/spf13/cobra.(*Command).Execute|github.com/spf13/cobra.(*Command).Execute>
/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:968
<http://github.com/spf13/cobra.(*Command).ExecuteContext|github.com/spf13/cobra.(*Command).ExecuteContext>
/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:961
<http://github.com/ory/keto/cmd.Execute|github.com/ory/keto/cmd.Execute>
/project/cmd/root.go:63
main.main
/project/main.go:14
runtime.main
/usr/local/go/src/runtime/proc.go:250
runtime.goexit
/usr/local/go/src/runtime/asm_amd64.s:1594