```go ❯ spicedb migrate head \ --datastore-eng...
# spicedb
c
Copy code
go
❯ spicedb migrate head \
    --datastore-engine=postgres \
    --datastore-conn-uri="postgres://postgres:postgres@localhost:5432/spicedb?sslmode=disable"
12:19PM INF configured logging async=false format=auto log_level=info provider=zerolog
12:19PM INF GOMEMLIMIT is updated GOMEMLIMIT=22594528051 package=github.com/KimMachineGun/automemlimit/memlimit previous=9223372036854775807
12:19PM INF configured opentelemetry tracing endpoint= insecure=false provider=none sampleRatio=0.01 service=spicedb v=0
12:19PM WRN this version of SpiceDB is out of date. See: https://github.com/authzed/spicedb/releases/tag/v1.45.2 latest-released-version=v1.45.2 this-version=v1.44.4
12:19PM WRN use of deprecated command newCommand="spicedb datastore migrate"
12:19PM INF migrating postgres datastore
12:19PM INF running migrations targetRevision=head
12:19PM ERR Query pgx={"args":[],"err":"ERROR: relation \"alembic_version\" does not exist (SQLSTATE 42P01)","pid":916220,"sql":"SELECT version_num from alembic_version","time":0.299993}
12:19PM ERR Query pgx={"args":[],"err":"ERROR: relation \"alembic_version\" does not exist (SQLSTATE 42P01)","pid":916220,"sql":"SELECT version_num from alembic_version","time":0.145914}
--snip--
12:19PM ERR Query pgx={"args":[],"err":"ERROR: type \"xid8\" does not exist (SQLSTATE 42704)","pid":916220,"sql":"\n\t\tALTER TABLE relation_tuple_transaction\n\t\t\tALTER COLUMN id SET DEFAULT (pg_current_xact_id()::text::bigint),\n\t\t\tADD COLUMN xid xid8 NOT NULL DEFAULT (pg_current_xact_id()),\n\t\t\tADD COLUMN snapshot pg_snapshot","time":0.140884}
12:19PM ERR terminated with errors error="unable to migrate to `head` revision: error executing migration `add-xid-columns`: ERROR: type \"xid8\" does not exist (SQLSTATE 42704)"
3 Views