Repository: ariga/atlas
Pull request #2683 (2024-04-15 04:58:22)

doc/clickhouse: add AggregateFunction data type
<img width="902" alt="Screenshot 2024-04-15 at 11 56 13" src="https://github.com/ariga/atlas/assets/16095902/b7376730-8d2c-4d7a-9b72-a05040d07dfb">



Patch:
diff --git a/cmd/atlas/go.mod b/cmd/atlas/go.mod
index ad1073d2..95b252a0 100644
--- a/cmd/atlas/go.mod
+++ b/cmd/atlas/go.mod
@@ -9,7 +9,6 @@ require (
 	entgo.io/ent v0.13.0
 	github.com/1lann/promptui v0.8.1-0.20220708222609-81fad96dd5e1
 	github.com/antlr4-go/antlr/v4 v4.13.0
-	github.com/auxten/postgresql-parser v1.0.1
 	github.com/aws/aws-sdk-go-v2/config v1.26.1
 	github.com/aws/aws-sdk-go-v2/feature/rds/auth v1.2.16
 	github.com/fatih/color v1.13.0
@@ -57,19 +56,10 @@ require (
 	github.com/aws/aws-sdk-go-v2/service/ssooidc v1.21.5 // indirect
 	github.com/aws/aws-sdk-go-v2/service/sts v1.26.5 // indirect
 	github.com/aws/smithy-go v1.19.0 // indirect
-	github.com/certifi/gocertifi v0.0.0-20200922220541-2c3bb06c6054 // indirect
 	github.com/chzyer/readline v1.5.1 // indirect
-	github.com/cockroachdb/apd v1.1.1-0.20181017181144-bced77f817b4 // indirect
-	github.com/cockroachdb/errors v1.8.2 // indirect
-	github.com/cockroachdb/logtags v0.0.0-20190617123548-eb05cc24525f // indirect
-	github.com/cockroachdb/redact v1.0.8 // indirect
-	github.com/cockroachdb/sentry-go v0.6.1-cockroachdb.2 // indirect
 	github.com/davecgh/go-spew v1.1.1 // indirect
-	github.com/dustin/go-humanize v1.0.0 // indirect
 	github.com/fsnotify/fsnotify v1.7.0 // indirect
-	github.com/getsentry/raven-go v0.2.0 // indirect
 	github.com/go-openapi/inflect v0.19.0 // indirect
-	github.com/gogo/protobuf v1.3.2 // indirect
 	github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
 	github.com/golang/protobuf v1.5.4 // indirect
 	github.com/google/go-cmp v0.6.0 // indirect
@@ -77,29 +67,23 @@ require (
 	github.com/google/wire v0.5.0 // indirect
 	github.com/googleapis/enterprise-certificate-proxy v0.3.2 // indirect
 	github.com/googleapis/gax-go/v2 v2.12.0 // indirect
-	github.com/grpc-ecosystem/grpc-gateway v1.16.0 // indirect
 	github.com/inconshreveable/mousetrap v1.1.0 // indirect
 	github.com/jmespath/go-jmespath v0.4.0 // indirect
 	github.com/klauspost/compress v1.15.15 // indirect
 	github.com/kr/pretty v0.3.0 // indirect
-	github.com/kr/text v0.2.0 // indirect
 	github.com/libsql/sqlite-antlr4-parser v0.0.0-20230512205400-b2348f0d1196 // indirect
 	github.com/mattn/go-colorable v0.1.12 // indirect
 	github.com/mattn/go-isatty v0.0.18 // indirect
 	github.com/mitchellh/go-wordwrap v1.0.0 // indirect
-	github.com/pingcap/errors v0.11.5-0.20210425183316-da1aaba5fb63 // indirect
-	github.com/pkg/errors v0.9.1 // indirect
+	github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e // indirect
 	github.com/pmezard/go-difflib v1.0.0 // indirect
-	github.com/rogpeppe/go-internal v1.6.1 // indirect
-	github.com/sirupsen/logrus v1.8.1 // indirect
 	go.opencensus.io v0.24.0 // indirect
 	go.opentelemetry.io/otel v1.24.0 // indirect
 	go.opentelemetry.io/otel/sdk v1.24.0 // indirect
-	go.uber.org/atomic v1.9.0 // indirect
-	golang.org/x/crypto v0.19.0 // indirect
-	golang.org/x/net v0.21.0 // indirect
+	golang.org/x/crypto v0.22.0 // indirect
+	golang.org/x/net v0.24.0 // indirect
 	golang.org/x/sync v0.6.0 // indirect
-	golang.org/x/sys v0.17.0 // indirect
+	golang.org/x/sys v0.19.0 // indirect
 	golang.org/x/text v0.14.0 // indirect
 	golang.org/x/time v0.4.0 // indirect
 	golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect
@@ -109,6 +93,7 @@ require (
 	google.golang.org/genproto/googleapis/rpc v0.0.0-20240123012728-ef4313101c80 // indirect
 	google.golang.org/grpc v1.62.1 // indirect
 	google.golang.org/protobuf v1.33.0 // indirect
+	gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f // indirect
 	gopkg.in/yaml.v3 v3.0.1 // indirect
 	nhooyr.io/websocket v1.8.7 // indirect
 )
diff --git a/cmd/atlas/go.sum b/cmd/atlas/go.sum
index a851d9a5..3f06b884 100644
--- a/cmd/atlas/go.sum
+++ b/cmd/atlas/go.sum
@@ -1,5 +1,4 @@
 cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
-cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
 cloud.google.com/go v0.112.0 h1:tpFCD7hpHFlQ8yPwT3x+QeXqc2T6+n6T+hmABHfDUSM=
 cloud.google.com/go v0.112.0/go.mod h1:3jEEVwZ/MHU4djK5t5RHuKOA/GbLddgTdVubX1qnPD4=
 cloud.google.com/go/compute v1.23.3 h1:6sVlXXBmbd7jNX0Ipq0trII3e4n1/MsADLK6a+aiVlk=
@@ -18,31 +17,20 @@ entgo.io/ent v0.13.0 h1:DclxWczaCpyiKn6ZWVcJjq1zIKtJ11iNKy+08lNYsJE=
 entgo.io/ent v0.13.0/go.mod h1:+oU8oGna69xy29O+g+NEz+/TM7yJDhQQGJfuOWq1pT8=
 github.com/1lann/promptui v0.8.1-0.20220708222609-81fad96dd5e1 h1:LejjvYg4tCW5HO7q/1nzPrprh47oUD9OUySQ29pDp5c=
 github.com/1lann/promptui v0.8.1-0.20220708222609-81fad96dd5e1/go.mod h1:cnC/60IoLiDM0GhdKYJ6oO7AwpZe1IQfPnSKlAURgHw=
-github.com/AndreasBriese/bbloom v0.0.0-20190306092124-e2d15f34fcf9/go.mod h1:bOvUY6CB00SOBii9/FifXqc0awNKxLFCL/+pkDPuyl8=
 github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
-github.com/CloudyKit/fastprinter v0.0.0-20170127035650-74b38d55f37a/go.mod h1:EFZQ978U7x8IRnstaskI3IysnWY5Ao3QgZUKOXlsAdw=
-github.com/CloudyKit/jet v2.1.3-0.20180809161101-62edd43e4f88+incompatible/go.mod h1:HPYO+50pSWkPoj9Q/eq0aRGByCL6ScRlUmiEX5Zgm+w=
 github.com/DATA-DOG/go-sqlmock v1.5.0 h1:Shsta01QNfFxHCfpW6YH2STWB0MudeXXEWMr20OEh60=
 github.com/DATA-DOG/go-sqlmock v1.5.0/go.mod h1:f/Ixk793poVmq4qj/V1dPUg2JEAKC73Q5eFN3EC/SaM=
-github.com/Joker/hpp v1.0.0/go.mod h1:8x5n+M1Hp5hC0g8okX3sR3vFQwynaX/UgSOM9MeBKzY=
-github.com/Joker/jade v1.0.1-0.20190614124447-d475f43051e7/go.mod h1:6E6s8o2AE4KhCrqr6GRJjdC/gNfTdxkIXvuGZZda2VM=
-github.com/Shopify/goreferrer v0.0.0-20181106222321-ec9c9a553398/go.mod h1:a1uqRtAwp2Xwc6WNPJEufxJ7fx3npB4UV/JOLmbu5I0=
 github.com/agext/levenshtein v1.2.1 h1:QmvMAjj2aEICytGiWzmxoE0x2KZvE0fvmqMOfy2tjT8=
 github.com/agext/levenshtein v1.2.1/go.mod h1:JEDfjyjHDjOF/1e4FlBE/PkbqA9OfWu2ki2W0IB5558=
 github.com/agnivade/levenshtein v1.0.1/go.mod h1:CURSv5d9Uaml+FovSIICkLbAUZ9S4RqaHDIsdSBg7lM=
-github.com/ajg/form v1.5.1/go.mod h1:uL1WgH+h2mgNtvBq0339dVnzXdBETtL2LeUXaIv25UY=
 github.com/andreyvit/diff v0.0.0-20170406064948-c7f18ee00883 h1:bvNMNQO63//z+xNgfBlViaCIJKLlCJ6/fmUseuG0wVQ=
 github.com/andreyvit/diff v0.0.0-20170406064948-c7f18ee00883/go.mod h1:rCTlJbsFo29Kk6CurOXKm700vrz8f0KW0JNfpkRJY/8=
-github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY=
 github.com/antlr/antlr4/runtime/Go/antlr/v4 v4.0.0-20230512164433-5d1fd1a340c9 h1:goHVqTbFX3AIo0tzGr14pgfAW2ZfPChKO21Z9MGf/gk=
 github.com/antlr/antlr4/runtime/Go/antlr/v4 v4.0.0-20230512164433-5d1fd1a340c9/go.mod h1:pSwJ0fSY5KhvocuWSx4fz3BA8OrA1bQn+K1Eli3BRwM=
 github.com/antlr4-go/antlr/v4 v4.13.0 h1:lxCg3LAv+EUK6t1i0y1V6/SLeUi0eKEKdhQAlS8TVTI=
 github.com/antlr4-go/antlr/v4 v4.13.0/go.mod h1:pfChB/xh/Unjila75QW7+VU4TSnWnnk9UTnmpPaOR2g=
 github.com/apparentlymart/go-textseg/v13 v13.0.0 h1:Y+KvPE1NYz0xl601PVImeQfFyEy6iT90AvPUL1NNfNw=
 github.com/apparentlymart/go-textseg/v13 v13.0.0/go.mod h1:ZK2fH7c4NqDTLtiYLvIkEghdlcqw7yxLeM89kiTRPUo=
-github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8=
-github.com/auxten/postgresql-parser v1.0.1 h1:x+qiEHAe2cH55Kly64dWh4tGvUKEQwMmJgma7a1kbj4=
-github.com/auxten/postgresql-parser v1.0.1/go.mod h1:Nf27dtv8EU1C+xNkoLD3zEwfgJfDDVi8Zl86gznxPvI=
 github.com/aws/aws-sdk-go v1.49.0 h1:g9BkW1fo9GqKfwg2+zCD+TW/D36Ux+vtfJ8guF4AYmY=
 github.com/aws/aws-sdk-go v1.49.0/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk=
 github.com/aws/aws-sdk-go-v2 v1.20.1/go.mod h1:NU06lETsFm8fUC6ZjhgDpVBcGZTFQ6XM+LZWZxMI4ac=
@@ -79,10 +67,7 @@ github.com/aws/aws-sdk-go-v2/service/sts v1.26.5/go.mod h1:XX5gh4CB7wAs4KhcF46G6
 github.com/aws/smithy-go v1.14.1/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA=
 github.com/aws/smithy-go v1.19.0 h1:KWFKQV80DpP3vJrrA9sVAHQ5gc2z8i4EzrLhLlWXcBM=
 github.com/aws/smithy-go v1.19.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE=
-github.com/aymerick/raymond v2.0.3-0.20180322193309-b565731e1464+incompatible/go.mod h1:osfaiScAUVup+UC9Nfq76eWqDhXlp+4UYaA8uhTBO6g=
 github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
-github.com/certifi/gocertifi v0.0.0-20200922220541-2c3bb06c6054 h1:uH66TXeswKn5PW5zdZ39xEwfS9an067BirqA+P4QaLI=
-github.com/certifi/gocertifi v0.0.0-20200922220541-2c3bb06c6054/go.mod h1:sGbDF6GwGcLpkNXPUTkMRoywsNa/ol15pxFe6ERfguA=
 github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI=
 github.com/chzyer/logex v1.2.1 h1:XHDu3E6q+gdHgsdTPH6ImJMIp436vR6MPtH8gP05QzM=
 github.com/chzyer/logex v1.2.1/go.mod h1:JLbx6lG2kDbNRFnfkgvh4eRJRPX1QCoOIWomwysCBrQ=
@@ -94,66 +79,27 @@ github.com/chzyer/test v1.0.0 h1:p3BQDXSxOhOG0P9z6/hGnII4LGiEPOYBhs8asl/fC04=
 github.com/chzyer/test v1.0.0/go.mod h1:2JlltgoNkt4TW/z9V/IzDdFaMTM2JPIi26O1pF38GC8=
 github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
 github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc=
-github.com/cockroachdb/apd v1.1.1-0.20181017181144-bced77f817b4 h1:XWEdfNxDkZI3DXXlpo0hZJ1xdaH/f3CKuZpk93pS/Y0=
-github.com/cockroachdb/apd v1.1.1-0.20181017181144-bced77f817b4/go.mod h1:mdGz2CnkJrefFtlLevmE7JpL2zB9tKofya/6w7wWzNA=
-github.com/cockroachdb/datadriven v1.0.0/go.mod h1:5Ib8Meh+jk1RlHIXej6Pzevx/NLlNvQB9pmSBZErGA4=
-github.com/cockroachdb/errors v1.6.1/go.mod h1:tm6FTP5G81vwJ5lC0SizQo374JNCOPrHyXGitRJoDqM=
-github.com/cockroachdb/errors v1.8.2 h1:rnnWK9Nn5kEMOGz9531HuDx/FOleL4NVH20VsDexVC8=
-github.com/cockroachdb/errors v1.8.2/go.mod h1:qGwQn6JmZ+oMjuLwjWzUNqblqk0xl4CVV3SQbGwK7Ac=
-github.com/cockroachdb/logtags v0.0.0-20190617123548-eb05cc24525f h1:o/kfcElHqOiXqcou5a3rIlMc7oJbMQkeLk0VQJ7zgqY=
-github.com/cockroachdb/logtags v0.0.0-20190617123548-eb05cc24525f/go.mod h1:i/u985jwjWRlyHXQbwatDASoW0RMlZ/3i9yJHE2xLkI=
-github.com/cockroachdb/redact v1.0.8 h1:8QG/764wK+vmEYoOlfobpe12EQcS81ukx/a4hdVMxNw=
-github.com/cockroachdb/redact v1.0.8/go.mod h1:BVNblN9mBWFyMyqK1k3AAiSxhvhfK2oOZZ2lK+dpvRg=
-github.com/cockroachdb/sentry-go v0.6.1-cockroachdb.2 h1:IKgmqgMQlVJIZj19CdocBeSfSaiCbEBZGKODaixqtHM=
-github.com/cockroachdb/sentry-go v0.6.1-cockroachdb.2/go.mod h1:8BT+cPK6xvFOcRlk0R8eg+OTkcqI6baNH4xAkpiYVvQ=
-github.com/codegangsta/inject v0.0.0-20150114235600-33e0aa1cb7c0/go.mod h1:4Zcjuz89kmFXt9morQgcfYZAYZ5n8WHjt81YYWIwtTM=
-github.com/coreos/etcd v3.3.10+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE=
-github.com/coreos/go-etcd v2.0.0+incompatible/go.mod h1:Jez6KQU2B/sWsbdaef3ED8NzMklzPG4d5KIOhIy30Tk=
-github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk=
-github.com/cpuguy83/go-md2man v1.0.10/go.mod h1:SmD6nW6nTyfqj6ABTjUi3V3JVMnlJmwcJI5acqYI6dE=
 github.com/cpuguy83/go-md2man/v2 v2.0.3/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=
 github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
 github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
 github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
 github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
-github.com/dgraph-io/badger v1.6.0/go.mod h1:zwt7syl517jmP8s94KqSxTlM6IMsdhYy6psNgSztDR4=
-github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ=
-github.com/dgryski/go-farm v0.0.0-20190423205320-6a90982ecee2/go.mod h1:SqUrOPUnsFjfmXRMNPybcSiG0BgUW2AuFH8PAnS2iTw=
-github.com/dustin/go-humanize v1.0.0 h1:VSnTsYCnlFHaM2/igO1h6X3HA71jcobQuxemgkq4zYo=
-github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk=
-github.com/eknkc/amber v0.0.0-20171010120322-cdade1c07385/go.mod h1:0vRUJqYpeSZifjYj7uP3BG/gKcuzL9xWVV/Y+cK33KM=
 github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
 github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
 github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98=
 github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
-github.com/etcd-io/bbolt v1.3.3/go.mod h1:ZF2nL25h33cCyBtcyWeZ2/I3HQOfTP+0PIEvHjkjCrw=
-github.com/fasthttp-contrib/websocket v0.0.0-20160511215533-1f3b11f56072/go.mod h1:duJ4Jxv5lDcvg4QuQr0oowTf7dz4/CR8NtyCooz9HL8=
 github.com/fatih/color v1.13.0 h1:8LOYc1KYPPmyKMuN8QV2DNRWNbLo6LZ0iLs8+mlH53w=
 github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk=
-github.com/fatih/structs v1.1.0/go.mod h1:9NiDSp5zOcgEDl+j00MP/WkGVPOlPRLejGD8Ga6PJ7M=
-github.com/flosch/pongo2 v0.0.0-20190707114632-bbf5a6c351f4/go.mod h1:T9YF2M40nIgbVgp3rreNmTged+9HrbNTIQf1PsaIiTA=
-github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
-github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ=
 github.com/fsnotify/fsnotify v1.7.0 h1:8JEhPFa5W2WU7YfeZzPNqzMP6Lwt7L2715Ggo0nosvA=
 github.com/fsnotify/fsnotify v1.7.0/go.mod h1:40Bi/Hjc2AVfZrqy+aj+yEI+/bRxZnMJyTJwOpGvigM=
-github.com/gavv/httpexpect v2.0.0+incompatible/go.mod h1:x+9tiU1YnrOvnB725RkpoLv1M62hOWzwo5OXotisrKc=
-github.com/getsentry/raven-go v0.2.0 h1:no+xWJRb5ZI7eE8TWgIq1jLulQiIoLG0IfYxv5JYMGs=
-github.com/getsentry/raven-go v0.2.0/go.mod h1:KungGk8q33+aIAZUIVWZDr2OfAEBsO49PX4NzFV5kcQ=
-github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04=
-github.com/gin-contrib/sse v0.0.0-20190301062529-5545eab6dad3/go.mod h1:VJ0WA2NBN22VlZ2dKZQPAPnyWw5XTlK1KymzLKsr59s=
 github.com/gin-contrib/sse v0.1.0 h1:Y/yl/+YNO8GZSjAhjMsSuLt29uWRFHdHYUb5lYOV9qE=
 github.com/gin-contrib/sse v0.1.0/go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm+fLHvGI=
-github.com/gin-gonic/gin v1.4.0/go.mod h1:OW2EZn3DO8Ln9oIKOvM++LBO+5UPHJJDH72/q/3rZdM=
 github.com/gin-gonic/gin v1.6.3 h1:ahKqKTFpO5KTPHxWZjEdPScmYaGtLo8Y4DMHoEsnp14=
 github.com/gin-gonic/gin v1.6.3/go.mod h1:75u5sXoLsGZoRN5Sgbi1eraJ4GU3++wFwWzhwvtwp4M=
-github.com/go-check/check v0.0.0-20180628173108-788fd7840127/go.mod h1:9ES+weclKsC9YodN5RgxqK/VD9HM9JsCSh7rNhMZE98=
-github.com/go-errors/errors v1.0.1 h1:LUHzmkK3GUKUrL/1gfBUxAHzcev3apQlezX/+O7ma6w=
-github.com/go-errors/errors v1.0.1/go.mod h1:f4zRHt4oKfwPJE5k8C9vpYG+aDHdBFUsgrm6/TyX73Q=
 github.com/go-logr/logr v1.4.1 h1:pKouT5E8xu9zeFC39JXRDukb6JFQPXM5p5I91188VAQ=
 github.com/go-logr/logr v1.4.1/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY=
 github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag=
 github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE=
-github.com/go-martini/martini v0.0.0-20170121215854-22fa46961aab/go.mod h1:/P9AEU963A2AYjv4d1V5eVL1CQbEJq6aCNHDDjibzu8=
 github.com/go-openapi/inflect v0.19.0 h1:9jCH9scKIbHeV9m12SmPilScz6krDxKRasNNSNPXu/4=
 github.com/go-openapi/inflect v0.19.0/go.mod h1:lHpZVlpIQqLyKwJ4N+YSc9hchQy/i12fJykb83CRBH4=
 github.com/go-playground/assert/v2 v2.0.1/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4=
@@ -173,12 +119,6 @@ github.com/gobwas/pool v0.2.0 h1:QEmUOlnSjWtnpRGHF3SauEiOsy82Cup83Vf2LcMlnc8=
 github.com/gobwas/pool v0.2.0/go.mod h1:q8bcK0KcYlCgd9e7WYLm9LpyS+YeLd8JVDW6WezmKEw=
 github.com/gobwas/ws v1.0.2 h1:CoAavW/wd/kulfZmSIBt6p24n4j7tHgNVCjsfHVNUbo=
 github.com/gobwas/ws v1.0.2/go.mod h1:szmBTxLgaFppYjEmNtny/v3w89xOydFnnZMcgRRu/EM=
-github.com/gogo/googleapis v0.0.0-20180223154316-0cd9801be74a/go.mod h1:gf4bu3Q80BeJ6H1S1vYPm8/ELATdvryBaNFGgqEef3s=
-github.com/gogo/protobuf v1.2.0/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ=
-github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o=
-github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q=
-github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q=
-github.com/gogo/status v1.1.0/go.mod h1:BFv9nrluPLmrS0EmGVvLaPNmRosr9KapBYd5/hpY1WM=
 github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q=
 github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
 github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da h1:oI5xCqsCo564l8iNU+DwB5epxmsaqB+rhGL0m5jtYqE=
@@ -196,25 +136,21 @@ github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrU
 github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w=
 github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0=
 github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8=
-github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI=
 github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI=
 github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk=
 github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY=
 github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek=
 github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps=
-github.com/gomodule/redigo v1.7.1-0.20190724094224-574c33c3df38/go.mod h1:B4C85qUVwatsJoIUNIfCRsp7qO0iAmpGFZ4EELWSbC4=
 github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M=
 github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
 github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
 github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
 github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
-github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
 github.com/google/go-cmp v0.5.3/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
 github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
 github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
 github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
 github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
-github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck=
 github.com/google/go-replayers/grpcreplay v1.1.0 h1:S5+I3zYyZ+GQz68OfbURDdt/+cSMqCK1wrvNx7WBzTE=
 github.com/google/go-replayers/grpcreplay v1.1.0/go.mod h1:qzAvJ8/wi57zq7gWqaE6AwLM6miiXUQwP1S+I9icmhk=
 github.com/google/go-replayers/httpreplay v1.2.0 h1:VM1wEyyjaoU53BwrOnaf9VhAyQQEEioJvFYxYcLRKzk=
@@ -234,56 +170,24 @@ github.com/googleapis/enterprise-certificate-proxy v0.3.2 h1:Vie5ybvEvT75RniqhfF
 github.com/googleapis/enterprise-certificate-proxy v0.3.2/go.mod h1:VLSiSSBs/ksPL8kq3OBOQ6WRI2QnaFynd1DCjZ62+V0=
 github.com/googleapis/gax-go/v2 v2.12.0 h1:A+gCJKdRfqXkr+BIRGtZLibNXf0m1f9E4HG56etFpas=
 github.com/googleapis/gax-go/v2 v2.12.0/go.mod h1:y+aIqrI5eb1YGMVJfuV3185Ts/D7qKpsEkdD5+I6QGU=
-github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY=
-github.com/gorilla/websocket v1.4.0/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ=
 github.com/gorilla/websocket v1.4.1/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE=
 github.com/gorilla/websocket v1.5.0 h1:PPwGk2jz7EePpoHN/+ClbZu8SPxiqlu12wZP/3sWmnc=
 github.com/gorilla/websocket v1.5.0/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE=
-github.com/grpc-ecosystem/grpc-gateway v1.16.0 h1:gmcG1KaJ57LophUzW0Hy8NmPhnMZb4M0+kPpLofRdBo=
-github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw=
-github.com/hashicorp/go-version v1.2.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA=
-github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ=
 github.com/hashicorp/hcl/v2 v2.13.0 h1:0Apadu1w6M11dyGFxWnmhhcMjkbAiKCv7G1r/2QgCNc=
 github.com/hashicorp/hcl/v2 v2.13.0/go.mod h1:e4z5nxYlWNPdDSNYX+ph14EvWYMFm3eP0zIUqPc2jr0=
-github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU=
-github.com/hydrogen18/memlistener v0.0.0-20141126152155-54553eb933fb/go.mod h1:qEIFzExnS6016fRpRfxrExeVn2gbClQA99gQhnIcdhE=
-github.com/imkira/go-interpol v1.1.0/go.mod h1:z0h2/2T3XF8kyEPpRgJ3kmNv+C43p+I/CoI+jC3w2iA=
-github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8=
 github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8=
 github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=
-github.com/iris-contrib/blackfriday v2.0.0+incompatible/go.mod h1:UzZ2bDEoaSGPbkg6SAB4att1aAwTmVIx/5gCVqeyUdI=
-github.com/iris-contrib/go.uuid v2.0.0+incompatible/go.mod h1:iz2lgM/1UnEf1kP0L/+fafWORmlnuysV2EMP8MW+qe0=
-github.com/iris-contrib/i18n v0.0.0-20171121225848-987a633949d0/go.mod h1:pMCz62A0xJL6I+umB2YTlFRwWXaDFA0jy+5HzGiJjqI=
-github.com/iris-contrib/schema v0.0.1/go.mod h1:urYA3uvUNG1TIIjOSCzHr9/LmbQo8LrOcOqfqxa4hXw=
 github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg=
 github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo=
 github.com/jmespath/go-jmespath/internal/testify v1.5.1 h1:shLQSRRSCCPj3f2gpwzGwWFoC7ycTf1rcQZHOlsJ6N8=
 github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfCI6z80xFu9LTZmf1ZRjMHUOPmWr69U=
-github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU=
 github.com/json-iterator/go v1.1.9/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
 github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM=
 github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo=
-github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU=
-github.com/juju/errors v0.0.0-20181118221551-089d3ea4e4d5/go.mod h1:W54LbzXuIE0boCoNJfwqpmkKJ1O4TCTZMetAt6jGk7Q=
-github.com/juju/loggo v0.0.0-20180524022052-584905176618/go.mod h1:vgyd7OREkbtVEN/8IXZe5Ooef3LQePvuBm9UWj6ZL8U=
-github.com/juju/testing v0.0.0-20180920084828-472a3e8b2073/go.mod h1:63prj8cnj0tU0S9OHjGJn+b1h0ZghCndfnbQolrYTwA=
-github.com/k0kubun/colorstring v0.0.0-20150214042306-9440f1994b88/go.mod h1:3w7q1U84EfirKl04SVQ/s7nPm1ZPhiXd34z40TNz36k=
-github.com/kataras/golog v0.0.9/go.mod h1:12HJgwBIZFNGL0EJnMRhmvGA0PQGx8VFwrZtM4CqbAk=
-github.com/kataras/iris/v12 v12.0.1/go.mod h1:udK4vLQKkdDqMGJJVd/msuMtN6hpYJhg/lSzuxjhO+U=
-github.com/kataras/neffos v0.0.10/go.mod h1:ZYmJC07hQPW67eKuzlfY7SO3bC0mw83A3j6im82hfqw=
-github.com/kataras/pio v0.0.0-20190103105442-ea782b38602d/go.mod h1:NV88laa9UiiDuX9AhMbDPkGYSPugBOV6yTZB1l2K9Z0=
-github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00=
-github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8=
-github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=
-github.com/klauspost/compress v1.8.2/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A=
-github.com/klauspost/compress v1.9.0/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A=
 github.com/klauspost/compress v1.10.3/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs=
 github.com/klauspost/compress v1.15.15 h1:EF27CXIuDsYJ6mmvtBRlEuB2UVOqHG1tAXgZ7yIO+lw=
 github.com/klauspost/compress v1.15.15/go.mod h1:ZcK2JAFqKOpnBlxcLsJzYfrS9X1akm9fHZNnD9+Vo/4=
-github.com/klauspost/cpuid v1.2.1/go.mod h1:Pj4uuM528wm8OyEC2QMXAi2YiTZ96dNQPGgoMS4s3ek=
-github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
 github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
-github.com/kr/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI=
 github.com/kr/pretty v0.3.0 h1:WgNl7dwNpEZ6jJ9k1snq4pZsg7DOEN8hP9Xw0Tsjwk0=
 github.com/kr/pretty v0.3.0/go.mod h1:640gp4NfQd8pI5XOwp5fnNeVWj67G7CFk/SaSQn7NBk=
 github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
@@ -292,136 +196,67 @@ github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
 github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
 github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc=
 github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw=
-github.com/labstack/echo/v4 v4.1.11/go.mod h1:i541M3Fj6f76NZtHSj7TXnyM8n2gaodfvfxNnFqi74g=
-github.com/labstack/gommon v0.3.0/go.mod h1:MULnywXg0yavhxWKc+lOruYdAhDwPK9wf0OL7NoOu+k=
 github.com/leodido/go-urn v1.2.0 h1:hpXL4XnriNwQ/ABnpepYM/1vCLWNDfUNts8dX3xTG6Y=
 github.com/leodido/go-urn v1.2.0/go.mod h1:+8+nEpDfqqsY+g338gtMEUOtuK+4dEMhiQEgxpxOKII=
-github.com/lib/pq v1.9.0/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o=
 github.com/lib/pq v1.10.9 h1:YXG7RB+JIjhP29X+OtkiDnYaXQwpS4JEWq7dtCCRUEw=
 github.com/lib/pq v1.10.9/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o=
 github.com/libsql/libsql-client-go v0.0.0-20230602133133-5905f0c4f8a5 h1:thfvsTYVytQK4hlUt2/bCUqZk892fQaPUE2InFm+ZWE=
 github.com/libsql/libsql-client-go v0.0.0-20230602133133-5905f0c4f8a5/go.mod h1:XaIcfeMOJ1w1L/TELMmzOXkAGZKRYF/QSWTqgwOT4R8=
 github.com/libsql/sqlite-antlr4-parser v0.0.0-20230512205400-b2348f0d1196 h1:XBs+xh9/OM9kMvK7W9a3SEReC5x26z22cbYn0K6cUW4=
 github.com/libsql/sqlite-antlr4-parser v0.0.0-20230512205400-b2348f0d1196/go.mod h1:20nXSmcf0nAscrzqsXeC2/tA3KkV2eCiJqYuyAgl+ss=
-github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ=
-github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE=
 github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc=
 github.com/mattn/go-colorable v0.1.12 h1:jF+Du6AlPIjs2BiUiQlKOX0rt3SujHxPnksPKZbaA40=
 github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4=
-github.com/mattn/go-isatty v0.0.7/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s=
-github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s=
-github.com/mattn/go-isatty v0.0.9/go.mod h1:YNRxwqDuOph6SZLI9vUUz6OYw3QyUt7WiY2yME+cCiQ=
 github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU=
 github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94=
 github.com/mattn/go-isatty v0.0.18 h1:DOKFKCQ7FNG2L1rbrmstDN4QVRdS89Nkh85u68Uwp98=
 github.com/mattn/go-isatty v0.0.18/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
 github.com/mattn/go-sqlite3 v1.14.16 h1:yOQRA0RpS5PFz/oikGwBEqvAWhWg5ufRz4ETLjwpU1Y=
 github.com/mattn/go-sqlite3 v1.14.16/go.mod h1:2eHXhiwb8IkHr+BDWZGa96P6+rkvnG63S2DGjv9HUNg=
-github.com/mattn/goveralls v0.0.2/go.mod h1:8d1ZMHsd7fW6IRPKQh46F2WRpyib5/X4FOpevwGNQEw=
-github.com/mediocregopher/mediocre-go-lib v0.0.0-20181029021733-cb65787f37ed/go.mod h1:dSsfyI2zABAdhcbvkXqgxOxrCsbYeHCPgrZkku60dSg=
-github.com/mediocregopher/radix/v3 v3.3.0/go.mod h1:EmfVyvspXz1uZEyPBMyGK+kjWiKQGvsUt6O3Pj+LDCQ=
-github.com/microcosm-cc/bluemonday v1.0.2/go.mod h1:iVP4YcDBq+n/5fb23BhYFvIMq/leAFZyRl6bYmGDlGc=
 github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y=
 github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0=
 github.com/mitchellh/go-wordwrap v1.0.0 h1:6GlHJ/LTGMrIJbwgdqdl2eEH8o+Exx/0m8ir9Gns0u4=
 github.com/mitchellh/go-wordwrap v1.0.0/go.mod h1:ZXFpozHsX6DPmq2I0TCekCxypsnAUbP2oI0UX1GXzOo=
-github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y=
 github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
 github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg=
 github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
 github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
-github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
 github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M=
 github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk=
-github.com/moul/http2curl v1.0.0/go.mod h1:8UbvGypXm98wA/IqH45anm5Y2Z6ep6O31QGOAZ3H0fQ=
-github.com/nats-io/nats.go v1.8.1/go.mod h1:BrFz9vVn0fU3AcH9Vn4Kd7W0NpJ651tD5omQ3M8LwxM=
-github.com/nats-io/nkeys v0.0.2/go.mod h1:dab7URMsZm6Z/jp9Z5UGa87Uutgc2mVpXLC4B7TDb/4=
-github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OSON2c=
 github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e h1:fD57ERR4JtEqsWbfPhv4DMiApHyliiK5xCTNVSPiaAs=
 github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno=
-github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A=
-github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
-github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk=
-github.com/onsi/ginkgo v1.13.0/go.mod h1:+REjRxOmWfHCjfv9TTWB1jD1Frx4XydAD3zm1lskyM0=
-github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY=
-github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo=
-github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic=
-github.com/petermattis/goid v0.0.0-20180202154549-b0b1615b78e5 h1:q2e307iGHPdTGp0hoxKjt1H5pDo6utceo3dQVK3I5XQ=
-github.com/petermattis/goid v0.0.0-20180202154549-b0b1615b78e5/go.mod h1:jvVRKCrJTQWu0XVbaOlby/2lO20uSCHEMzzplHXte1o=
 github.com/pganalyze/pg_query_go/v5 v5.1.0 h1:MlxQqHZnvA3cbRQYyIrjxEjzo560P6MyTgtlaf3pmXg=
 github.com/pganalyze/pg_query_go/v5 v5.1.0/go.mod h1:FsglvxidZsVN+Ltw3Ai6nTgPVcK2BPukH3jCDEqc1Ug=
-github.com/pingcap/errors v0.11.4/go.mod h1:Oi8TUi2kEtXXLMJk9l1cGmz20kV3TaQ0usTwv5KuLY8=
-github.com/pingcap/errors v0.11.5-0.20210425183316-da1aaba5fb63 h1:+FZIDR/D97YOPik4N4lPDaUcLDF/EQPogxtlHB2ZZRM=
-github.com/pingcap/errors v0.11.5-0.20210425183316-da1aaba5fb63/go.mod h1:X2r9ueLEUZgtx2cIogM0v4Zj5uvvzhuuiu7Pn8HzMPg=
-github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
-github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
-github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
-github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
 github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
 github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
 github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
-github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ=
 github.com/rogpeppe/go-internal v1.6.1 h1:/FiVV8dS/e+YqF2JvO3yXRFbBLTIuSDkuC7aBOAvL+k=
 github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc=
-github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g=
 github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
-github.com/ryanuber/columnize v2.1.0+incompatible/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts=
-github.com/sclevine/agouti v3.0.0+incompatible/go.mod h1:b4WX9W9L1sfQKXeJf1mUTLZKJ48R1S7H23Ji7oFO5Bw=
 github.com/sergi/go-diff v1.1.0 h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0=
 github.com/sergi/go-diff v1.1.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM=
-github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc=
-github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88=
-github.com/sirupsen/logrus v1.8.1 h1:dJKuHgqk1NNQlqoA6BTlM1Wf9DOH3NBjQyu0h9+AZZE=
-github.com/sirupsen/logrus v1.8.1/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0=
-github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc=
-github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA=
-github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ=
-github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE=
-github.com/spf13/cobra v0.0.5/go.mod h1:3K3wKZymM7VvHMDS9+Akkh4K60UwM26emMESw8tLCHU=
 github.com/spf13/cobra v1.8.0 h1:7aJaZx1B85qltLMc546zn58BxxfZdR/W22ej9CFoEf0=
 github.com/spf13/cobra v1.8.0/go.mod h1:WXLWApfZ71AjXPya3WOlMsY9yMs7YeiHhFVlvLyhcho=
-github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo=
-github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4=
 github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=
 github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
-github.com/spf13/viper v1.3.2/go.mod h1:ZiWeW+zYFKm7srdB9IoDzzZXaJaI5eL9QjNiN/DMA2s=
 github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
 github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
 github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
-github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
 github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
 github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
-github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
 github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
 github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
 github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
 github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk=
 github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
-github.com/ugorji/go v1.1.4/go.mod h1:uQMGLiO92mf5W77hV/PUCpI3pbzQx3CRekS0kk+RGrc=
 github.com/ugorji/go v1.1.7 h1:/68gy2h+1mWMrwZFeD1kQialdSzAb432dtpeJ42ovdo=
 github.com/ugorji/go v1.1.7/go.mod h1:kZn38zHttfInRq0xu/PH0az30d+z6vm202qpg1oXVMw=
-github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8/go.mod h1:VFNgLljTbGfSG7qAOspJ7OScBnGdDN/yBr0sguwnwf0=
 github.com/ugorji/go/codec v1.1.7 h1:2SvQaVZ1ouYrrKKwoSk2pzd4A9evlKJb9oTL+OaLUSs=
 github.com/ugorji/go/codec v1.1.7/go.mod h1:Ax+UKWsSmolVDwsd+7N3ZtXu+yMGCf907BLYF3GoBXY=
-github.com/urfave/negroni v1.0.0/go.mod h1:Meg73S6kFm/4PpbYdq35yYWoCZ9mS/YSx+lKnmiohz4=
-github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc=
-github.com/valyala/fasthttp v1.6.0/go.mod h1:FstJa9V+Pj9vQ7OJie2qMHdwemEDaDiSdBnvPM1Su9w=
-github.com/valyala/fasttemplate v1.0.1/go.mod h1:UQGH1tvbgY+Nz5t2n7tXsz52dQxojPUpymEIMZ47gx8=
-github.com/valyala/tcplisten v0.0.0-20161114210144-ceec8f93295a/go.mod h1:v3UYOV9WzVtRmSR+PDvWpU/qWl4Wa5LApYYX4ZtKbio=
 github.com/vektah/gqlparser/v2 v2.5.1 h1:ZGu+bquAY23jsxDRcYpWjttRZrUz07LbiY77gUOHcr4=
 github.com/vektah/gqlparser/v2 v2.5.1/go.mod h1:mPgqFBu/woKTVYWyNk8cO3kh4S/f4aRFZrvOnp3hmCs=
 github.com/vmihailenco/msgpack/v4 v4.3.12/go.mod h1:gborTTJjAo/GWTqqRjrLCn9pgNN+NXzzngzBKDPIqw4=
 github.com/vmihailenco/tagparser v0.1.1/go.mod h1:OeAg3pn3UbLjkWt+rN9oFYB6u/cQgqMEUPoW2WPyhdI=
-github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU=
-github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415/go.mod h1:GwrjFmJcFw6At/Gs6z4yjiIwzuJ1/+UwLxMQDVQXShQ=
-github.com/xeipuuv/gojsonschema v1.2.0/go.mod h1:anYRn/JVcOK2ZgGU+IjEV4nwlhoK5sQluxsYJ78Id3Y=
-github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q=
-github.com/yalp/jsonpath v0.0.0-20180802001716-5cc68e5049a0/go.mod h1:/LWChgwKmvncFJFHJ7Gvn9wZArjbV5/FppcK2fKk/tI=
-github.com/yudai/gojsondiff v1.0.0/go.mod h1:AY32+k2cwILAkW1fbgxQ5mUmMiZFgLIV+FBNExI05xg=
-github.com/yudai/golcs v0.0.0-20170316035057-ecda9a501e82/go.mod h1:lgjkn3NuSvDfVJdfcVVdX+jpBxNmX4rDAzaS45IcYoM=
-github.com/yudai/pp v2.0.1+incompatible/go.mod h1:PuxR/8QJ7cyCkFp/aUDS+JY727OFEZkTdatxwunjIkc=
-github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
-github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
 github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
 github.com/zclconf/go-cty v1.8.0 h1:s4AvqaeQzJIu3ndv4gVIhplVD0krU+bgrcLSVUnaWuA=
 github.com/zclconf/go-cty v1.8.0/go.mod h1:vVKLxnk3puL4qRAv72AO+W99LUD4da90g3uUAzyuvAk=
@@ -435,89 +270,52 @@ go.opentelemetry.io/otel/sdk v1.24.0 h1:YMPPDNymmQN3ZgczicBY3B6sf9n62Dlj9pWD3ucg
 go.opentelemetry.io/otel/sdk v1.24.0/go.mod h1:KVrIYw6tEubO9E96HQpcmpTKDVn9gdv35HoYiQWGDFg=
 go.opentelemetry.io/otel/trace v1.24.0 h1:CsKnnL4dUAr/0llH9FKuc698G04IrpWV0MQA/Y1YELI=
 go.opentelemetry.io/otel/trace v1.24.0/go.mod h1:HPc3Xr/cOApsBI154IU0OI0HJexz+aw5uPdbs3UCjNU=
-go.uber.org/atomic v1.6.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ=
-go.uber.org/atomic v1.9.0 h1:ECmE8Bn/WFTYwEW/bpKD3M8VtR/zQVbavAoalC1PYyE=
-go.uber.org/atomic v1.9.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc=
 gocloud.dev v0.36.0 h1:q5zoXux4xkOZP473e1EZbG8Gq9f0vlg1VNH5Du/ybus=
 gocloud.dev v0.36.0/go.mod h1:bLxah6JQVKBaIxzsr5BQLYB4IYdWHkMZdzCXlo6F0gg=
-golang.org/x/crypto v0.0.0-20181203042331-505ab145d0a9/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
 golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
-golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
-golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
 golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
 golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
-golang.org/x/crypto v0.19.0 h1:ENy+Az/9Y1vSrlrvBSyna3PITt4tiZLf7sgCjZBX7Wo=
-golang.org/x/crypto v0.19.0/go.mod h1:Iy9bg/ha4yyC70EfRS8jz+B6ybOBKMaSxLj6P6oBDfU=
+golang.org/x/crypto v0.22.0 h1:g1v0xeRhjcugydODzvb3mEM9SQ0HGp9s/nh3COQ/C30=
+golang.org/x/crypto v0.22.0/go.mod h1:vr6Su+7cTlO45qkww3VDJlzDn0ctJvRgYbC2NvXHt+M=
 golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
 golang.org/x/exp v0.0.0-20230515195305-f3d0a9c9a5cc h1:mCRnTeVUjcrhlRmO0VK8a6k6Rrf6TF9htwo2pJVSjIU=
 golang.org/x/exp v0.0.0-20230515195305-f3d0a9c9a5cc/go.mod h1:V1LtkGg67GoY2N1AnLN78QLrzxkLyJw7RJb1gzOOz9w=
 golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE=
 golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU=
 golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
-golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
-golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
-golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
 golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
 golang.org/x/mod v0.15.0 h1:SernR4v+D55NyBH2QiEQrlBAnj1ECL6AGrA5+dPaMY8=
 golang.org/x/mod v0.15.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c=
 golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
 golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
-golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
-golang.org/x/net v0.0.0-20181220203305-927f97764cc3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
-golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
 golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
 golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
-golang.org/x/net v0.0.0-20190327091125-710a502c58a2/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
 golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
-golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
 golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks=
 golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
-golang.org/x/net v0.0.0-20190827160401-ba9fcec4b297/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
-golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
 golang.org/x/net v0.0.0-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
-golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
-golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
-golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
 golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
 golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
 golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
-golang.org/x/net v0.21.0 h1:AQyQV4dYCvJ7vGmJyKki9+PBdyvhkSd8EIx/qb0AYv4=
-golang.org/x/net v0.21.0/go.mod h1:bIjVDfnllIU7BJ2DNgfnXvpSvtn8VRwhlsaeUTyUS44=
+golang.org/x/net v0.24.0 h1:1PcaxkF854Fu3+lvBIx5SYn9wRlBzzcnHZSiaFFAb0w=
+golang.org/x/net v0.24.0/go.mod h1:2Q7sJY5mzlzWjKtYUEXSlBWCdyaioyXzRB2RtU8KVE8=
 golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
-golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
 golang.org/x/oauth2 v0.16.0 h1:aDkGMBSYxElaoP81NpoUoz2oo2R2wHdZpGToUxfyQrQ=
 golang.org/x/oauth2 v0.16.0/go.mod h1:hqZ+0LWXsiVoZpeld6jVt06P3adbS2Uu911W1SsJv2o=
 golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
 golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
-golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
-golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
 golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
-golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
-golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
 golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
 golang.org/x/sync v0.6.0 h1:5BMeUDZ7vkXGfEr1x9B4bRcTH4lpkTkpdh0T/J+qjbQ=
 golang.org/x/sync v0.6.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
 golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
-golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
 golang.org/x/sys v0.0.0-20181122145206-62eef0e2fa9b/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
-golang.org/x/sys v0.0.0-20181205085412-a5c9d58dba9a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
 golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
-golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
 golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20190626221950-04f50cda93cb/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20190904154756-749cb33beabd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
 golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
 golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20200519105757-fe76b779f299/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
 golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
 golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20201214210602-f9fddec55a1e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
 golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
 golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
 golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
@@ -525,14 +323,13 @@ golang.org/x/sys v0.0.0-20220310020820-b874c991c1a5/go.mod h1:oPkhp1MJrh7nUepCBc
 golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
 golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
 golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/sys v0.17.0 h1:25cE3gD+tdBA7lp7QfhuV+rJiE9YXTcS3VG1SqssI/Y=
-golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
+golang.org/x/sys v0.19.0 h1:q5f1RH2jigJ1MoAWp2KTp3gm5zAGFUTarQZ5U386+4o=
+golang.org/x/sys v0.19.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
 golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
 golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
 golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
 golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
 golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
-golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
 golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
 golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
 golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ=
@@ -542,24 +339,15 @@ golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxb
 golang.org/x/time v0.4.0 h1:Z81tqI5ddIoXDPvVQ7/7CC9TnLM7ubaFG2qXYd5BbYY=
 golang.org/x/time v0.4.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM=
 golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
-golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
-golang.org/x/tools v0.0.0-20181221001348-537d06c36207/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
 golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
 golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY=
 golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
-golang.org/x/tools v0.0.0-20190327201419-c70d86f8b7cf/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
-golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
 golang.org/x/tools v0.0.0-20190422233926-fe54fb35175b/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
 golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
-golang.org/x/tools v0.0.0-20191029041327-9cc4af7d6b2c/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
 golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
-golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
-golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
 golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
 golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
-golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
 golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
-golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
 golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 h1:+cNy6SZtPcJQH3LJVLOSmiC7MMxXNOb3PU/VUEz+EhU=
 golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028/go.mod h1:NDW/Ps6MPRej6fsCIbMTohpP40sJ/P/vI1MoTEGwX90=
 google.golang.org/api v0.151.0 h1:FhfXLO/NFdJIzQtCqjpysWwqKk8AzGWBUhMIx67cVDU=
@@ -569,25 +357,19 @@ google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7
 google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc=
 google.golang.org/appengine v1.6.8 h1:IhEN5q69dyKagZPYMSdIjS2HqprW324FRQZJcGqPAsM=
 google.golang.org/appengine v1.6.8/go.mod h1:1jJ3jBArFh5pcgW8gCtRJnepW8FzD1V44FJffLiz/Ds=
-google.golang.org/genproto v0.0.0-20180518175338-11a468237815/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc=
 google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc=
 google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc=
-google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
 google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo=
-google.golang.org/genproto v0.0.0-20200911024640-645f7a48b24f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
 google.golang.org/genproto v0.0.0-20240123012728-ef4313101c80 h1:KAeGQVN3M9nD0/bQXnr/ClcEMJ968gUXJQ9pwfSynuQ=
 google.golang.org/genproto v0.0.0-20240123012728-ef4313101c80/go.mod h1:cc8bqMqtv9gMOr0zHg2Vzff5ULhhL2IXP4sbcn32Dro=
 google.golang.org/genproto/googleapis/api v0.0.0-20240123012728-ef4313101c80 h1:Lj5rbfG876hIAYFjqiJnPHfhXbv+nzTWfm04Fg/XSVU=
 google.golang.org/genproto/googleapis/api v0.0.0-20240123012728-ef4313101c80/go.mod h1:4jWUdICTdgc3Ibxmr8nAJiiLHwQBY0UI0XZcEMaFKaA=
 google.golang.org/genproto/googleapis/rpc v0.0.0-20240123012728-ef4313101c80 h1:AjyfHzEPEFp/NpvfN5g+KDla3EMojjhRVZc1i7cj+oM=
 google.golang.org/genproto/googleapis/rpc v0.0.0-20240123012728-ef4313101c80/go.mod h1:PAREbraiVEVGVdTZsVWjSbbTtSyGbAgIIvni8a8CD5s=
-google.golang.org/grpc v1.12.0/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw=
 google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
 google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg=
 google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY=
 google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk=
-google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk=
-google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTpR3n0=
 google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc=
 google.golang.org/grpc v1.62.1 h1:B4n+nfKzOICUXMgyrNd19h/I9oH0L1pizfk1d4zSgTk=
 google.golang.org/grpc v1.62.1/go.mod h1:IWTG0VlJLCh1SkC58F7np9ka9mx/WNkjl4PGJaiq+QE=
@@ -599,7 +381,6 @@ google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzi
 google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
 google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
 google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
-google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4=
 google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c=
 google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
 google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
@@ -612,20 +393,12 @@ gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8
 gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f h1:BLraFXnmrev5lT+xlilqcH8XK9/i0At2xKjWk4p6zsU=
 gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
 gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI=
-gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys=
-gopkg.in/go-playground/assert.v1 v1.2.1/go.mod h1:9RXL0bg/zibRAgZUYszZSwO/z8Y/a8bDuhia5mkpMnE=
-gopkg.in/go-playground/validator.v8 v8.18.2/go.mod h1:RX2a/7Ha8BgOhfk7j780h4/u/RRjR0eouCJSH80/M2Y=
-gopkg.in/mgo.v2 v2.0.0-20180705113604-9856a29383ce/go.mod h1:yeKp02qBN3iKW1OzL3MGk2IdtZzaj7SFntXj72NppTA=
-gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw=
 gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
-gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
 gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
 gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
-gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
 gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
 gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
 gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
-gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
 gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
 gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
 honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
diff --git a/cmd/atlas/internal/cmdapi/project.go b/cmd/atlas/internal/cmdapi/project.go
index 6581fd42..3a0dd947 100644
--- a/cmd/atlas/internal/cmdapi/project.go
+++ b/cmd/atlas/internal/cmdapi/project.go
@@ -156,6 +156,8 @@ type (
 			Diff string `spec:"diff"`
 		} `spec:"migrate"`
 		Schema struct {
+			// Inspect configures the formatting for 'schema inspect'.
+			Inspect string `spec:"inspect"`
 			// Apply configures the formatting for 'schema apply'.
 			Apply string `spec:"apply"`
 			// Apply configures the formatting for 'schema diff'.
diff --git a/cmd/atlas/internal/cmdapi/schema.go b/cmd/atlas/internal/cmdapi/schema.go
index 72aea8cb..d824a409 100644
--- a/cmd/atlas/internal/cmdapi/schema.go
+++ b/cmd/atlas/internal/cmdapi/schema.go
@@ -663,6 +663,10 @@ func setSchemaEnvFlags(cmd *cobra.Command, env *Env) error {
 		return err
 	}
 	switch cmd.Name() {
+	case "inspect":
+		if err := maySetFlag(cmd, flagFormat, env.Format.Schema.Inspect); err != nil {
+			return err
+		}
 	case "apply":
 		if err := maySetFlag(cmd, flagFormat, env.Format.Schema.Apply); err != nil {
 			return err
diff --git a/cmd/atlas/internal/docker/docker.go b/cmd/atlas/internal/docker/docker.go
index edc01d31..e554d1c4 100644
--- a/cmd/atlas/internal/docker/docker.go
+++ b/cmd/atlas/internal/docker/docker.go
@@ -140,8 +140,17 @@ func FromURL(u *url.URL) (*Config, error) {
 		cfg, err = MariaDB(tag, opts...)
 	case "postgis":
 		opts = append(opts, Image("postgis/postgis:"+tag))
+		if dbName != "" && dbName != "postgres" {
+			// Create manually the PostgreSQL database instead of using the POSTGRES_DB because
+			// PostGIS automatically creates and install the following extensions and schemas:
+			// Schemas: tiger, tiger_data, topology.
+			// Extensions: postgis, postgis_topology, postgis_tiger_geocoder.
+			opts = append(
+				opts, Database(dbName), Setup(fmt.Sprintf("CREATE DATABASE %q", dbName)),
+			)
+		}
 		driver = DriverPostgres
-		fallthrough
+		cfg, err = PostgreSQL(tag, opts...)
 	case DriverPostgres:
 		if dbName != "" {
 			opts = append(opts, Database(dbName), Env("POSTGRES_DB="+dbName))
diff --git a/cmd/atlas/internal/migratelint/lint_oss.go b/cmd/atlas/internal/migratelint/lint_oss.go
index 0a9c31dc..15ab2f91 100644
--- a/cmd/atlas/internal/migratelint/lint_oss.go
+++ b/cmd/atlas/internal/migratelint/lint_oss.go
@@ -14,7 +14,7 @@ import (
 )
 
 func (d *DevLoader) stmts(_ context.Context, f migrate.File, _ bool) ([]*migrate.Stmt, error) {
-	stmts, err := migrate.FileStmtDecls(d.Dev, f)
+	stmts, err := migrate.FileStmtDecls(d.Dev.Driver, f)
 	if err != nil {
 		return nil, &FileError{File: f.Name(), Err: fmt.Errorf("scanning statements: %w", err)}
 	}
diff --git a/cmd/atlas/internal/sqlparse/pgparse/pgparse.go b/cmd/atlas/internal/sqlparse/pgparse/pgparse.go
index 1bd8530a..6bb4e8bd 100644
--- a/cmd/atlas/internal/sqlparse/pgparse/pgparse.go
+++ b/cmd/atlas/internal/sqlparse/pgparse/pgparse.go
@@ -2,8 +2,6 @@
 // This source code is licensed under the Apache 2.0 license found
 // in the LICENSE file in the root directory of this source tree.
 
-//go:build !windows
-
 package pgparse
 
 import (
diff --git a/cmd/atlas/internal/sqlparse/pgparse/pgparse_oss.go b/cmd/atlas/internal/sqlparse/pgparse/pgparse_oss.go
index 45cb22e8..6a6e2e9a 100644
--- a/cmd/atlas/internal/sqlparse/pgparse/pgparse_oss.go
+++ b/cmd/atlas/internal/sqlparse/pgparse/pgparse_oss.go
@@ -2,7 +2,7 @@
 // This source code is licensed under the Apache 2.0 license found
 // in the LICENSE file in the root directory of this source tree.
 
-//go:build !ent && !windows
+//go:build !ent
 
 package pgparse
 
diff --git a/cmd/atlas/internal/sqlparse/pgparse/pgparse_windows.go b/cmd/atlas/internal/sqlparse/pgparse/pgparse_windows.go
deleted file mode 100644
index 5b64b736..00000000
--- a/cmd/atlas/internal/sqlparse/pgparse/pgparse_windows.go
+++ /dev/null
@@ -1,181 +0,0 @@
-// Copyright 2021-present The Atlas Authors. All rights reserved.
-// This source code is licensed under the Apache 2.0 license found
-// in the LICENSE file in the root directory of this source tree.
-
-package pgparse
-
-import (
-	"fmt"
-	"slices"
-	"strconv"
-
-	"ariga.io/atlas/cmd/atlas/internal/sqlparse/parseutil"
-	"ariga.io/atlas/sql/migrate"
-	"ariga.io/atlas/sql/postgres"
-	"ariga.io/atlas/sql/schema"
-
-	"github.com/auxten/postgresql-parser/pkg/sql/parser"
-	"github.com/auxten/postgresql-parser/pkg/sql/sem/tree"
-)
-
-// Parser implements the sqlparse.Parser
-type Parser struct{}
-
-// ColumnFilledBefore checks if the column was filled before the given position.
-func (p *Parser) ColumnFilledBefore(stmts []*migrate.Stmt, t *schema.Table, c *schema.Column, pos int) (bool, error) {
-	return parseutil.MatchStmtBefore(stmts, pos, func(s *migrate.Stmt) (bool, error) {
-		stmt, err := parser.ParseOne(s.Text)
-		if err != nil {
-			return false, err
-		}
-		u, ok := stmt.AST.(*tree.Update)
-		if !ok || !tableUpdated(u, t) {
-			return false, nil
-		}
-		// Accept UPDATE that fills all rows or those with NULL values as we cannot
-		// determine if NULL values were filled in case there is a custom filtering.
-		affectC := func() bool {
-			if u.Where == nil {
-				return true
-			}
-			x, ok := u.Where.Expr.(*tree.ComparisonExpr)
-			if !ok || x.Operator != tree.IsNotDistinctFrom || x.SubOperator != tree.EQ {
-				return false
-			}
-			return x.Left.String() == c.Name && x.Right == tree.DNull
-		}()
-		idx := slices.IndexFunc(u.Exprs, func(x *tree.UpdateExpr) bool {
-			return slices.Contains(x.Names, tree.Name(c.Name)) && x.Expr != tree.DNull
-		})
-		// Ensure the column was filled.
-		return affectC && idx != -1, nil
-	})
-}
-
-// CreateViewAfter checks if a view was created after the position with the given name to a table.
-func (p *Parser) CreateViewAfter(stmts []*migrate.Stmt, old, new string, pos int) (bool, error) {
-	return parseutil.MatchStmtAfter(stmts, pos, func(s *migrate.Stmt) (bool, error) {
-		stmt, err := parser.ParseOne(s.Text)
-		if err != nil {
-			return false, err
-		}
-		v, ok := stmt.AST.(*tree.CreateView)
-		if !ok || v.AsSource == nil || v.Name.String() != old {
-			return false, nil
-		}
-		sc, ok := v.AsSource.Select.(*tree.SelectClause)
-		if !ok || len(sc.From.Tables) != 1 {
-			return false, nil
-		}
-		return tree.AsString(sc.From.Tables[0]) == new, nil
-	})
-}
-
-// FixChange fixes the changes according to the given statement.
-func (p *Parser) FixChange(_ migrate.Driver, s string, changes schema.Changes) (schema.Changes, error) {
-	stmt, err := parser.ParseOne(s)
-	if err != nil {
-		return nil, err
-	}
-	switch stmt := stmt.AST.(type) {
-	case *tree.AlterTable:
-		if r, ok := renameColumn(stmt); ok {
-			modify, err := expectModify(changes)
-			if err != nil {
-				return nil, err
-			}
-			parseutil.RenameColumn(modify, r)
-		}
-	case *tree.RenameIndex:
-		modify, err := expectModify(changes)
-		if err != nil {
-			return nil, err
-		}
-		parseutil.RenameIndex(modify, &parseutil.Rename{
-			From: stmt.Index.String(),
-			To:   stmt.NewName.String(),
-		})
-	case *tree.RenameTable:
-		changes = parseutil.RenameTable(changes, &parseutil.Rename{
-			From: stmt.Name.String(),
-			To:   stmt.NewName.String(),
-		})
-	case *tree.CreateIndex:
-		modify, err := expectModify(changes)
-		if err != nil {
-			return nil, err
-		}
-		name := stmt.Name.String()
-		if uname, err := strconv.Unquote(name); err == nil {
-			name = uname
-		}
-		i := schema.Changes(modify.Changes).IndexAddIndex(name)
-		if i == -1 {
-			return nil, fmt.Errorf("AddIndex %q command not found", stmt.Name)
-		}
-		add := modify.Changes[i].(*schema.AddIndex)
-		if slices.IndexFunc(add.Extra, func(c schema.Clause) bool {
-			_, ok := c.(*postgres.Concurrently)
-			return ok
-		}) == -1 && stmt.Concurrently {
-			add.Extra = append(add.Extra, &postgres.Concurrently{})
-		}
-	case *tree.DropIndex:
-		modify, err := expectModify(changes)
-		if err != nil {
-			return nil, err
-		}
-		for _, n := range stmt.IndexList {
-			name := n.String()
-			if uname, err := strconv.Unquote(name); err == nil {
-				name = uname
-			}
-			i := schema.Changes(modify.Changes).IndexDropIndex(name)
-			if i == -1 {
-				return nil, fmt.Errorf("DropIndex %q command not found", name)
-			}
-			drop := modify.Changes[i].(*schema.DropIndex)
-			if slices.IndexFunc(drop.Extra, func(c schema.Clause) bool {
-				_, ok := c.(*postgres.Concurrently)
-				return ok
-			}) == -1 && stmt.Concurrently {
-				drop.Extra = append(drop.Extra, &postgres.Concurrently{})
-			}
-		}
-	}
-	return changes, nil
-}
-
-// renameColumn returns the renamed column exists in the statement, is any.
-func renameColumn(stmt *tree.AlterTable) (*parseutil.Rename, bool) {
-	for _, c := range stmt.Cmds {
-		if r, ok := c.(*tree.AlterTableRenameColumn); ok {
-			return &parseutil.Rename{
-				From: r.Column.String(),
-				To:   r.NewName.String(),
-			}, true
-		}
-	}
-	return nil, false
-}
-
-func expectModify(changes schema.Changes) (*schema.ModifyTable, error) {
-	if len(changes) != 1 {
-		return nil, fmt.Errorf("unexpected number fo changes: %d", len(changes))
-	}
-	modify, ok := changes[0].(*schema.ModifyTable)
-	if !ok {
-		return nil, fmt.Errorf("expected modify-table change for alter-table statement, but got: %T", changes[0])
-	}
-	return modify, nil
-}
-
-// tableUpdated checks if the table was updated in the statement.
-func tableUpdated(u *tree.Update, t *schema.Table) bool {
-	at, ok := u.Table.(*tree.AliasedTableExpr)
-	if !ok {
-		return false
-	}
-	n, ok := at.Expr.(*tree.TableName)
-	return ok && n.Table() == t.Name && (n.Schema() == "" || n.Schema() == t.Schema.Name)
-}
diff --git a/doc/md/atlas-schema/hcl-types.md b/doc/md/atlas-schema/hcl-types.md
index ca21f93a..1b9ea133 100644
--- a/doc/md/atlas-schema/hcl-types.md
+++ b/doc/md/atlas-schema/hcl-types.md
@@ -1635,3 +1635,24 @@ table "t" {
   }
 }
 ```
+
+### AggregateFunction
+Atlas supports defining ClickHouse aggregate data types by using the `sql` function.
+
+```hcl
+table "t" {
+  schema = schema.test
+  engine = Memory
+  column "c1" {
+    null = false
+    type = sql("AggregateFunction(uniq, UInt64)")
+  }
+  column "c2" {
+    null = false
+    type = sql("SimpleAggregateFunction(sum, Int32)")
+  }
+}
+```
+
+:::info 
+The `AggregateFunction` and `SimpleAggregateFunction` are complex data types. Therefore, we recommend using a [Dev Database](../../md/concepts//dev.mdx) to normalize these types.
\ No newline at end of file
diff --git a/doc/md/atlas-schema/projects.mdx b/doc/md/atlas-schema/projects.mdx
index c7abf29b..e58edd8e 100644
--- a/doc/md/atlas-schema/projects.mdx
+++ b/doc/md/atlas-schema/projects.mdx
@@ -1120,6 +1120,7 @@ set or map item. See the example [below](#multi-environment-example).
     - `lint` - Set custom formatting for `migrate lint`.
     - `status` - Set custom formatting for `migrate status`.
   - `schema`
+    - `inspect` - Set custom formatting for `schema inspect`.
     - `apply` - Set custom formatting for `schema apply`.
     - `diff` - Set custom formatting for `schema diff`.
 
diff --git a/doc/md/atlas-vs-others.mdx b/doc/md/atlas-vs-others.mdx
new file mode 100644
index 00000000..9b680f2c
--- /dev/null
+++ b/doc/md/atlas-vs-others.mdx
@@ -0,0 +1,332 @@
+---
+title: Atlas vs Classic Migration Tools
+id: atlas-vs-others
+slug: atlas-vs-others
+---
+
+## Introduction
+
+### What are schema migrations?
+
+Most server-side applications are backed by a database. This database usually has a schema that reflects the
+application's data model. Over time, the application's data model evolves and the database schema must follow suit.
+
+Schema migrations are a common approach in our industry to automate schema changes. Following this approach, the
+user creates a versioned *migration script*, which is the set of commands that should be executed on the database
+to upgrade the schema from one version to the next, thereby *migrating* the database to the next version.
+
+### What are migration tools?
+
+Over the years, hundreds of tools have been created to facilitate the process of schema migrations. Migration
+tools typically provide a structured way of defining migration scripts,  versioning them, and a program to execute
+them on a target database.
+
+Because most database schema changes are not idempotent (they cannot be re-run successfully once applied),
+migration tools commonly maintain a "Changelog Table" on the target database to keep track of which migrations
+have already been applied.
+
+### Which migration tool should you use?
+
+Choosing the right migration tool for your project can be daunting due to the sheer number of options available. In this document, we compare Atlas, a modern, database schema-as-code tool to more "classic" options that have been developed over the years.
+
+We will take a high-level look at multiple candidates:
+
+- **Liquibase and Flyway** - established JVM-based migration tools
+- **ORM-based solutions** - that ship with the most popular ORM and backend frameworks
+- **Atlas** - a modern, database schema-as-code tool
+
+
+### The candidates
+
+|                              | Atlas                   | Liquibase         | Flyway                        | ORMs          |
+|------------------------------|-------------------------|-------------------|-------------------------------|---------------|
+| Tagline                      | Database schema as code | Database DevOps   | Database migrations made easy | Varies        |
+| Open-sourced                 | 2021                    | 2006              | 2010                          | Varies        |
+| Written in                   | Go                      | Java              | Java                          | Varies        |
+| Docker Image Size            | 22 MB                   | 198 MB            | 242 MB                        | Varies        |
+| Migration Format             | SQL                     | XML/JSON/SQL/Java | SQL                           | Native Code * |
+| Commercial Support Available | ✅                       | ✅                 | ✅                             | ☒ *           |
+
+
+**Liquibase and Flyway -** are well-established projects that have been around since 2006 and 2010 respectively. Both are
+written in Java and require a JVM to execute. Both tools have an open-source distribution and are backed by commercial companies.
+
+Liquibase and Flyway alike operate by letting the user define migration scripts (Flyway in plain SQL, Liquibase in
+XML, SQL, or Java) and execute them on behalf of the user.
+
+**ORM-based Solutions** - many backend developers use application development frameworks or ORM libraries to
+interact with their underlying database. Virtually all of them provide some support for schema management which
+is crucial for supporting developers in any realistic production environment.
+
+ORM-based migration tools vary greatly in quality and sophistication which makes it a bit difficult to treat them
+as a single group. In relevant categories where certain tools especially stand out, we will try to mention them specifically.
+ORM tend to provide native programming language based DSLs for defining migrations (such as
+[Sequelize Migrations](https://sequelize.org/docs/v6/other-topics/migrations/), with a few exceptions which use plain
+SQL.
+
+ORMs tend to be community-based projects without a commercial entity backing them (with the exception of
+[Prisma](https://prisma.io)).  This means that the level of support and maintenance can vary greatly between different
+options.
+
+**Atlas** - is a database schema-as-code tool that applies modern DevOps principles to the ancient art of database
+schema management. Many of its users call it a "Terraform for Databases" because of its schema-first,
+declarative approach.
+
+Atlas is an [open-core](https://github.com/ariga/atlas) project developed by [Ariga](https://ariga.io) and is available
+under both a commercial and an open-source license.
+
+:::info Full Disclosure
+
+In case you missed it, this document is written and maintained by the team behind Atlas 😊
+
+:::
+
+## The Comparison
+
+### Summary (tl;dr)
+
+To assist you in deciding which migration tool is right for you, we will compare the different possibilities along these categories:
+
+|                         | Description                | Atlas | Liquibase | Flyway    | ORMs    |
+|-------------------------|----------------------------|-------|-----------|-----------|---------|
+| Schema-as-code          | How is the schema defined? | ✅     | Revisions | Revisions | Mix     |
+| Auto migration planning | How are changes planned?   | ✅     | Manual    | Manual    | Manual* |
+| Auto code review        | How is safety ensured?     | ✅     | Some      | Some      | Some    |
+| CLI Support             | Is CLI support available?  | ✅     | ✅        | ✅        | ✅       |
+| Kubernetes Operator     | Natively deploy from k8s   | ✅     | ☒         | ☒         | ☒       |
+| Terraform Provider      | Natively deploy from TF    | ✅     | ☒         | ☒         | ☒       |
+| Database Support        | Database driver count      | 9      | 60        | 31        | Varies  |
+
+
+\* Exceptions exist
+
+### Schema-as-code
+
+What is the source-of-truth for your database schema?
+
+|            | Atlas | Liquibase | Flyway | ORMs |
+|------------|-------|-----------|--------|------|
+| ORM Models | ✅     | ☒        | ☒      | Mix  |
+| Migrations | ✅     | ✅       | ✅     | Mix  |
+| SQL Schema  | ✅     | ☒        | ☒      | ☒    |
+| HCL        | ✅     | ☒        | ☒      | ☒    |
+
+
+One of the most important principles that came from the DevOps movement is the idea that to achieve effective automation,
+you need to be able to build everything, deterministically, from a single source of truth.
+
+This is especially important when it comes to databases! The database schema is a critical part of our application and
+we better have a way to ensure it is compatible with the code we are deploying.
+
+Let's compare the approach to defining the source of truth schema between different migration tools:
+
+**Flyway and Liquibase** are "version-based", which means that to obtain the current source of truth schema,
+one needs to replay all migrations on an empty database and inspect the result.
+
+**ORMs and frameworks** are more difficult to classify. On one hand, ORMs and frameworks revolve around a
+code-first definition of the different entities in the application data model.
+
+On the other hand, migrations are defined as revisions, in a version-based approach. Aside from [Prisma](https://prisma.io)
+and [Django](https://www.djangoproject.com/), most frameworks do not supply a mechanism to ensure that the planned
+migrations are consistent with the application data model as it is defined in the ORM.
+
+**Atlas** is a database _schema-as-code_ tool that takes the "schema-based" approach. Developers provide Atlas with the
+source-of-truth schema in various ways (SQL, HCL, and many other programming languages), and Atlas uses that to
+automatically plan changes. This way, the source of truth schema is always readily available and legible to users.
+
+:::info Using Atlas with ORMs
+
+Atlas provides a set of plugins called "schema loaders" for integrating with ORMs such as
+[SQLAlchemy](https://www.sqlalchemy.org/), [GORM](https://gorm.io) and [Hibernate](https://hibernate.org/orm/).
+
+By using schema loaders, developers can keep defining the application data model using their favorite
+ORM and programming language while offloading schema management to Atlas.
+
+:::
+
+### Planning Migrations
+
+Who is responsible for planning schema changes?
+
+|                                                 | Atlas | Liquibase | Flyway | ORMs         |
+|-------------------------------------------------|-------|-----------|--------|--------------|
+| Auto migrations from code                       | ✅     | ☒         | ☒      | Some         |
+| Declarative Migrations                          | ✅     | ☒         | ☒      | Dev-mode     |
+| Advanced DB Objects (triggers, functions, etc)  | ✅     | ☒         | ☒      | Some plugins |
+
+The next category in our comparison is migration planning. People deliberating which migration tool to use should ask
+themselves, who is going to plan the schema changes? If our database is in some version N, and we want to get to
+version N+1, we need to calculate the plan of going from one version to the next.
+
+**Flyway and Liquibase** rely on the user to plan schema changes. If a developer wishes to evolve the database
+schema to a new state, it is on them to look into their target database's documentation and find out the correct
+way to do so. Sometimes these changes are trivial, but many caveats and unpleasant surprises exist.
+
+**ORMs and frameworks** most ORMs and frameworks provide a basic "auto migration" functionality that can
+automatically plan changes for you. This is used primarily for local development on disposable databases.
+
+However, when it comes to planning production-grade changes, most frameworks leave planning to the user.
+
+As we mentioned above, some tools (such as Django) have stood out in this perspective, by providing
+automatic migration planning capabilities for many years. Even so, these tools tend to focus on a pretty
+narrow set of database capabilities often neglecting power tools such as functions, triggers, and stored procedures.
+
+**Atlas** includes a powerful automatic migration planning engine that supports over 95% of all database
+features.  Atlas migration flows come in two flavors:
+
+1. Fully declarative - Similar to Terraform, Atlas takes the desired state of the database (defined "as-code"),
+compares it to a live database, and suggests a migration plan at runtime.
+
+2. Versioned - Atlas compares the desired state of the database ("as-code") with the current state of your migration
+directory and produces a migration file to reconcile between the two.
+
+Both flows support "diffing policies" that provide Atlas with additional context and considerations about how
+to plan changes (such as: "always create indexes concurrently" or "verify columns are empty before dropping").
+
+Additionally, Atlas detects ambiguous change types such as resource renames (which can also be interpreted as
+drop-and-add), and prompts the user to disambiguate.
+
+### Quality Checks
+
+|                                        | Atlas | Liquibase | Flyway | ORMs         |
+|----------------------------------------|-------|-----------|--------|--------------|
+| Enforce Naming Conventions             | ✅     | ✅         | ✅      | ☒         |
+| Detect Destructive Changes             | ✅     | Paid      | ☒      | ☒         |
+| Detect Table Locks                     | ✅     | ☒         | ☒      | ☒         |
+| Detect Breaking Changes                | ✅     | ☒         | ☒      | ☒         |
+| Detect Potential Constraint Violations | ✅     | ☒         | ☒      | ☒         |
+| Pre-migration checks                   | ✅     | ✅         | ☒      | ☒         |
+| Post-migration checks                  | 🔜    | ☒         | ☒      | ☒            |
+| Migration conflict detection           | ✅     | ☒         | ☒      | ☒            |
+
+Schema migrations are a risky business, if you are not careful you can accidentally introduce destructive changes, break
+a data contract with your server or a downstream consumer, lock a table for writes causing downtime, or cause a
+deployment to fail because of a constraint violation.
+
+Traditionally, the responsibility for reviewing proposed migrations was placed on humans, specifically those with
+database expertise. With the growing complexity of modern tech stacks, people with deep database knowledge are becoming
+increasingly rare, exposing teams to potential risks.
+
+The modern approach to de-risking such operations is of course by automating quality checks during the CI phase of the
+software development life cycle. Let's see how the different options compare in this respect:
+
+**Flyway and Liquibase** - provide a limited set of automated quality checks as part of their commercial offering but
+not in the free/open source tier.
+
+**ORMs and frameworks** - generally do not provide automated quality checks for migrations. Over the years some
+notable exceptions have emerged, such as the `ankane/strong_migration` Ruby Gem that provides automated migration
+quality checks for Rails, and the Shadow Database functionality from "Prisma Migrate".
+
+**Atlas -** Atlas natively provides a feature called "Migration Linting" which is available both as a CLI tool and
+as a CI integration (for example with GitHub Actions). Migration Linting is similar to static code analysis in that
+it is based on a semantic analysis of changes and their examination through configurable policies.
+
+Atlas ships with over 30 automated checks to detect critical migration risks such as:
+
+* Destructive change detection
+* Data-dependent changes that may fail due to constraint violations
+* Table-locking operations that can cause database downtime
+* Breaking change detection
+* .. many more database-specific quirks and edge cases
+
+In addition, Atlas supports pre-migration checks that can be used to enforce certain predicates before a migration is
+applied. For example, you can enforce that a column is empty before dropping it, or that a column is not null before
+adding a constraint.
+
+To assist teams in preventing such negative outcomes, these checks can also be automatically generated by Atlas
+during the automatic migration planning phase.  These checks are respected by Atlas in the migration safety
+verification phase (i.e a migration dropping a table can be automatically approved if it contains no data).
+
+#### Migration conflict detection
+
+When a project succeeds to the point that it has many developers working on it, it's common to see developers working
+on different features that require different changes to the database schema. This can lead to conflicts when developers
+try to merge their changes together.
+
+Classic migration tools don't provide a good way to detect and handle this situation. Because each migration script
+is created in its own file, common conflict detection tools like git can't help you. Your source control system can't
+tell you if two developers are working on the same table, or if they are adding columns with the same name.
+
+For this reason, it's common to see teams surprised in production when conflicting migrations are applied.
+Even worse, in some cases migrations may be applied out of order or skipped entirely, leading to an inconsistent
+and unknown state of the database.
+
+Atlas supports this by enforcing a linear history and [Migration Directory Integrity](/concepts/migration-directory-integrity)
+during local development and in CI.
+
+### Deploying Migrations
+
+|                     | Atlas  | Liquibase | Flyway   | ORMs |
+|---------------------|--------|-----------|----------|------|
+| CLI                 | ✅      | ✅         | ✅        | ✅    |
+| Kubernetes Operator | ✅      | ☒         | ☒        | ☒    |
+| Terraform Provider  | ✅      | ☒         | ☒        | ☒    |
+| GitHub Action       | ✅      | ✅         | ☒        | ☒    |
+| GitLab CI Component | 🔜     | ☒         | ☒        | ☒    |
+| CircleCI Orb        | 🔜     | Community | ☒        | ☒    |
+| Native Code         | Go SDK | Java SDK  | Java SDK | ✅    |
+
+After planning and verifying the safety of migrations are considered, engineers comparing different migration tools
+should evaluate the provided deployment strategies.
+
+As you can see, virtually all tools provide a CLI tool that can be used to deploy migrations, making it possible
+to integrate schema management into CI/CD pipelines.
+
+However, modern deployment solutions often provide a modular plugin system that allows tool creators to develop
+simple integrations to streamline the deployment process.
+
+For instance, organizations that manage their source code on GitHub often use
+[GitHub Actions](https://github.com/features/actions) to automate their workflows. Tools that provide a
+native GitHub Actions integration make it easier for these organizations to integrate schema management into
+their CI/CD pipelines.  As of writing this document, Atlas and Liquibase are the only tools that provide a
+comprehensive [GitHub Actions](https://github.com/ariga/atlas-action) integration.
+
+Similarly, organizations that deploy to [Kubernetes](https://kubernetes.io) benefit from using Operators to
+extend the Kubernetes API with custom resources. By providing a Kubernetes Operator, a schema management
+makes it straightforward to include schemas as native Kubernetes resources.  Atlas is the only tool that
+provides a Kubernetes Operator for schema management.
+
+Finally, organizations that manage their infrastructure using [Terraform](https://terraform.io) rely on Terraform
+Providers to manage all of their resources. By providing a Terraform Provider, a schema management tool enables
+organizations to include schema management in their infrastructure-as-code workflows.  Atlas is the only tool
+under comparison here that provides a Terraform Provider.
+
+### Database Support
+
+Naturally, when comparing migration tools, support for various database engines is a differentiating factor.
+
+While all tools under comparison in this document support popular open-source RDBMSs such as PostgreSQL,
+MySQL and SQLite, support for other databases varies.
+
+The following table summarizes the support matrix for different databases between the different tools:
+
+|              | Atlas | Liquibase | Flyway | ORMs |
+|--------------|-------|-----------|--------|------|
+| PostgreSQL   | ✅     | ✅         | ✅      | ✅    |
+| MySQL        | ✅     | ✅         | ✅      | ✅    |
+| MariaDB      | ✅     | ✅         | ✅      | ✅    |
+| SQLite       | ✅     | ✅         | ✅      | ✅    |
+| LibSQL       | ✅     | ☒         | ☒      | Some |
+| SQL Server   | ✅     | ✅         | ✅      | Some |
+| ClickHouse   | ✅     | ✅         | ✅      | ☒    |
+| Redshift     | 🔜    | ✅         | ✅      | ☒    |
+| Oracle       | 🔜    | ✅         | ✅      | Some |
+| TiDB         | ✅     | ☒         | ✅      | Some |
+| CockroachDB  | ✅     | ✅         | ✅      | Some |
+| MongoDB      | ☒     | ✅         | ✅      | Some |
+| Apache Derby | ☒     | ✅         | ✅      | ☒    |
+| Full List    | [Here](https://atlasgo.io/features#database-support) | [47 more..](https://www.liquibase.com/supported-databases) | [18 more..](https://documentation.red-gate.com/flyway/flyway-cli-and-api/supported-databases)       | -     |
+
+As you can see from the table, Liquibase and Flyway, having been around for a longer time support the largest
+amount of databases. Atlas, being a newer tool, supports fewer databases but is rapidly expanding its support.
+
+## Conclusion
+
+We created Atlas to provide a modern, schema-as-code approach to database schema management. Atlas by no means
+is the best solution in every case and for every team but we hope this document has provided you with some
+insight into how Atlas compares to other tools and where it may be a good fit for your project.
+
+If you are interested in learning more about Atlas, we recommend you check out the [Quickstart Guide](/getting-started)
+and continue exploring the [documentation](/).
+
+If you have any questions about Atlas or want to engage with a community of Atlas users, you are welcome to join the discussion on the [Atlas Discord server](https://discord.gg/zZ6sWVg6NT).
diff --git a/doc/md/guides/deploying/helm.md b/doc/md/guides/deploying/helm.md
index 985e4027..517f5dd9 100644
--- a/doc/md/guides/deploying/helm.md
+++ b/doc/md/guides/deploying/helm.md
@@ -4,6 +4,14 @@ slug: /guides/deploying/helm
 title: Deploying schema migrations to Kubernetes with Helm
 ---
 
+:::note Deprecation Notice
+
+This method of running schema migrations is deprecated an no longer recommended.
+
+Please use the [Kubernetes Operator](k8s-argo.md) to manage schema migrations in Kubernetes.
+
+:::
+
 [Helm](https://helm.sh) is a popular package manager for Kubernetes that allows
 developers to package applications into distributable modules called 
 [Charts](https://helm.sh/docs/intro/using_helm/#three-big-concepts) that can be
diff --git a/doc/md/guides/deploying/init.md b/doc/md/guides/deploying/init.md
index 09110f2d..313086ed 100644
--- a/doc/md/guides/deploying/init.md
+++ b/doc/md/guides/deploying/init.md
@@ -4,6 +4,14 @@ slug: /guides/deploying/k8s-init-container
 title: Deploying schema migrations to Kubernetes with Init Containers
 ---
 
+:::note Deprecation Notice
+
+This method of running schema migrations is deprecated an no longer recommended. 
+
+Please use the [Kubernetes Operator](k8s-argo.md) to manage schema migrations in Kubernetes.
+
+:::
+
 In [Kubernetes](https://kubernetes.io), [Init Containers](https://kubernetes.io/docs/concepts/workloads/pods/init-containers/)
 are specialized containers that run before app containers in a Pod. Init containers
 can contain utilities or setup scripts not present in an app image. 
diff --git a/doc/md/guides/guides.mdx b/doc/md/guides/guides.mdx
index f5860967..cc5332d1 100644
--- a/doc/md/guides/guides.mdx
+++ b/doc/md/guides/guides.mdx
@@ -29,18 +29,6 @@ import { Card, CardImage } from "../components/card";
     url="/guides/deploying/aws-ecs-fargate"
     image={CardImage.ECS}
   />
-  <Card
-    name="Kubernetes with Helm"
-    description="Deploying schema migrations to Kubernetes with Helm"
-    url="/guides/deploying/helm"
-    image={CardImage.Helm}
-  />
-  <Card
-    name="Kubernetes with Init Containers"
-    description="Deploying schema migrations to Kubernetes with Init Containers"
-    url="/guides/deploying/k8s-init-container"
-    image={CardImage.Kubernetes}
-  />
   <Card
     name="Kubernetes with ArgoCD"
     description="Use the Atlas Kubernetes Operator and Argo CD"
diff --git a/doc/md/lint/analyzers.mdx b/doc/md/lint/analyzers.mdx
index b296242b..102f9823 100644
--- a/doc/md/lint/analyzers.mdx
+++ b/doc/md/lint/analyzers.mdx
@@ -231,51 +231,57 @@ lint {
 
 The following schema change checks are provided by Atlas:
 
-| **Check**                                 | **Short Description**                                                                        |
-|-------------------------------------------|----------------------------------------------------------------------------------------------|
-| **BC**                                    | **[Backward incompatible changes](#backward-incompatible-changes)**                          |
-| [BC101](#BC101)                           | Renaming a table                                                                             |
-| [BC102](#BC102)                           | Renaming a column                                                                            |
-| **CD**                                    | Constraint deletion changes                                                                  |
-| [CD101](#CD101)                           | Foreign-key constraint was dropped                                                           |
-| **DS**                                    | **[Destructive changes](#destructive-changes)**                                              |
-| [DS101](#DS101)                           | Schema was dropped                                                                           |
-| [DS102](#DS102)                           | Table was dropped                                                                            |
-| [DS103](#DS103)                           | Non-virtual column was dropped                                                               |
-| **LT**                                    | SQLite specific checks                                                                       |
-| [LT101](#LT101)                           | Modifying a nullable column to non-nullable without a `DEFAULT` value                        |
-| **MF**                                    | **[Data-dependent changes](#data-dependent-changes)** (changes that might fail)              |
-| [MF101](#MF101)                           | Add unique index to existing column                                                          |
-| [MF102](#MF102)                           | Modifying non-unique index to unique                                                         |
-| [MF103](#MF103)                           | Adding a non-nullable column to an existing table                                            |
-| [MF104](#MF104)                           | Modifying a nullable column to non-nullable                                                  |
-| **MY**                                    | MySQL and MariaDB specific checks                                                            |
-| [MY101](#MY101)                           | Adding a non-nullable column without a `DEFAULT` value to an existing table                  |
-| [MY102](#MY102)                           | Adding a column with an inline `REFERENCES` clause has no actual effect                      |
-| [MY110](#MY110)                           | Removing enum values from a column requires a table copy                                     |
-| [MY111](#MY111)                           | Reordering enum values of a colum requires a table copy                                      |
-| [MY112](#MY112)                           | Inserting new enum values not at the end requires a table copy                               |
-| [MY113](#MY113)                           | Exceeding 256 enum values changes storage size and requires a table copy                     |
-| [MY120](#MY120)                           | Removing set values from a column requires a table copy                                      |
-| [MY121](#MY121)                           | Reordering set values of a colum requires a table copy                                       |
-| [MY122](#MY122)                           | Inserting new set values not at the end requires a table copy                                |
-| [MY123](#MY123)                           | Exceeding 8, 16, 24, 32 or 64 set values changes the storage size and requires a table copy  |
-| **NM**                                    | **[Naming Conventions](#naming-conventions-policy)**                                         |
-| [NM101](#NM101)                           | Schema name violates the naming convention                                                   |
-| [NM102](#NM102)                           | Table name violates the naming convention                                                    |
-| [NM103](#NM103)                           | Column name violates the naming convention                                                   |
-| [NM104](#NM104)                           | Index name violates the naming convention                                                    |
-| [NM105](#NM105)                           | Foreign-key constraint name violates the naming convention                                   |
-| [NM106](#NM106)                           | Check constraint name violates the naming convention                                         |
-| **PG**                                    | PostgreSQL specific checks                                                                   |
-| [PG110](#PG110)                           | Creating table with non-optimal data alignment                                               |
-| **PG1**                                   | **[Concurrent Indexes](#concurrent-index-policy-postgresql)**                                |
-| [PG101](#PG101)                           | Missing the `CONCURRENTLY` in index creation                                                 |
-| [PG102](#PG102)                           | Missing the `CONCURRENTLY` in index deletion                                                 |
-| [PG103](#PG103)                           | Missing `atlas:txmode none` directive in file header                                         |
-| **PG3**                                   | PostgreSQL-specific blocking column changes &nbsp <LoginRequired/>                           |
-| [PG301](#PG301)                           | Column type change that requires table and indexes rewrite                                   |
-| [PG302](#PG302)                           | Adding a column with a volatile `DEFAULT` value requires a rewrite of the table              |
+| **Check**       | **Short Description**                                                                                   |
+|-----------------|---------------------------------------------------------------------------------------------------------|
+| **BC**          | **[Backward incompatible changes](#backward-incompatible-changes)**                                     |
+| [BC101](#BC101) | Renaming a table                                                                                        |
+| [BC102](#BC102) | Renaming a column                                                                                       |
+| **CD**          | Constraint deletion changes                                                                             |
+| [CD101](#CD101) | Foreign-key constraint was dropped                                                                      |
+| **DS**          | **[Destructive changes](#destructive-changes)**                                                         |
+| [DS101](#DS101) | Schema was dropped                                                                                      |
+| [DS102](#DS102) | Table was dropped                                                                                       |
+| [DS103](#DS103) | Non-virtual column was dropped                                                                          |
+| **MF**          | **[Data-dependent changes](#data-dependent-changes)** (changes that might fail)                         |
+| [MF101](#MF101) | Add unique index to existing column                                                                     |
+| [MF102](#MF102) | Modifying non-unique index to unique                                                                    |
+| [MF103](#MF103) | Adding a non-nullable column to an existing table                                                       |
+| [MF104](#MF104) | Modifying a nullable column to non-nullable                                                             |
+| **PG**          | PostgreSQL specific checks                                                                              |
+| [PG110](#PG110) | Creating table with non-optimal data alignment                                                          |
+| **PG1**         | **[Concurrent Indexes](#concurrent-index-policy-postgresql)** &nbsp <LoginRequired/>                    |
+| [PG101](#PG101) | Missing the `CONCURRENTLY` in index creation                                                            |
+| [PG102](#PG102) | Missing the `CONCURRENTLY` in index deletion                                                            |
+| [PG103](#PG103) | Missing `atlas:txmode none` directive in file header                                                    |
+| [PG104](#PG104) | `PRIMARY KEY` constraint creation that acquires an `ACCESS EXCLUSIVE` lock on the table                 |
+| [PG105](#PG105) | `UNIQUE` constraint creation that acquires an `ACCESS EXCLUSIVE` lock on the table                      |
+| **PG3**         | PostgreSQL-specific blocking table changes &nbsp <LoginRequired/>                                       |
+| [PG301](#PG301) | Column type change that requires table and indexes rewrite                                              |
+| [PG302](#PG302) | Adding a column with a volatile `DEFAULT` value requires a rewrite of the table                         |
+| [PG303](#PG303) | Modifying a nullable column to non-nullable requires a full table scan                                  |
+| [PG304](#PG304) | Adding a `PRIMARY KEY` on nullable columns implicitly set them to `NOT NULL` requires a full table scan |
+| [PG305](#PG305) | Adding a `CHECK` constraint that requires a full table scan                                             |
+| [PG306](#PG306) | Adding a `FOREIGN KEY` constraint that requires a full table scan and blocks write operations           |
+| **MY**          | MySQL and MariaDB specific checks                                                                       |
+| [MY101](#MY101) | Adding a non-nullable column without a `DEFAULT` value to an existing table                             |
+| [MY102](#MY102) | Adding a column with an inline `REFERENCES` clause has no actual effect                                 |
+| [MY110](#MY110) | Removing enum values from a column requires a table copy                                                |
+| [MY111](#MY111) | Reordering enum values of a colum requires a table copy                                                 |
+| [MY112](#MY112) | Inserting new enum values not at the end requires a table copy                                          |
+| [MY113](#MY113) | Exceeding 256 enum values changes storage size and requires a table copy                                |
+| [MY120](#MY120) | Removing set values from a column requires a table copy                                                 |
+| [MY121](#MY121) | Reordering set values of a colum requires a table copy                                                  |
+| [MY122](#MY122) | Inserting new set values not at the end requires a table copy                                           |
+| [MY123](#MY123) | Exceeding 8, 16, 24, 32 or 64 set values changes the storage size and requires a table copy             |
+| **NM**          | **[Naming Conventions](#naming-conventions-policy)**                                                    |
+| [NM101](#NM101) | Schema name violates the naming convention                                                              |
+| [NM102](#NM102) | Table name violates the naming convention                                                               |
+| [NM103](#NM103) | Column name violates the naming convention                                                              |
+| [NM104](#NM104) | Index name violates the naming convention                                                               |
+| [NM105](#NM105) | Foreign-key constraint name violates the naming convention                                              |
+| [NM106](#NM106) | Check constraint name violates the naming convention                                                    |
+| **LT**          | SQLite specific checks                                                                                  |
+| [LT101](#LT101) | Modifying a nullable column to non-nullable without a `DEFAULT` value                                   |
 
 #### DS101 {#DS101}
 
@@ -560,6 +566,24 @@ ALTER TABLE `new_users` RENAME TO `users`;
 PRAGMA foreign_keys = on;
 ```
 
+#### NM101 {#NM101}
+A schema has been given a name that violates the naming convention.
+
+#### NM102 {#NM102}
+A table has been given a name that violates the naming convention.
+
+#### NM103 {#NM103}
+A column has been given a name that violates the naming convention.
+
+#### NM104 {#NM104}
+An index has been given a name that violates the naming convention.
+
+#### NM105 {#NM105}
+A foreign-key constraint has been given a name that violates the naming convention.
+
+#### NM106 {#NM106}
+A check constraint has been given a name that violates the naming convention.
+
 #### PG110 {#PG110}
 
 Creating a table with optimal data alignment may help minimize the amount of required disk space.
@@ -589,33 +613,67 @@ CREATE TABLE accounts (
 );
 ```
 
-#### NM101 {#NM101}
-A schema has been given a name that violates the naming convention.
+#### PG101 <LoginRequired /> {#PG101}
+Creating an index non-concurrently acquires a `SHARE` lock on the table blocking writes but allowing reads during the
+operation.
 
-#### NM102 {#NM102}
-A table has been given a name that violates the naming convention.
+#### PG102 <LoginRequired />  {#PG102}
+Dropping an index non-concurrently acquires an `ACCESS EXCLUSIVE` lock on the table blocking both reads and writes
+during the operation.
 
-#### NM103 {#NM103}
-A column has been given a name that violates the naming convention.
+#### PG103 <LoginRequired />  {#PG103}
+Indexes cannot be created or deleted concurrently within a transaction. Add the `atlas:txmode none` directive to the
+header to prevent this file from running in a transaction.
 
-#### NM104 {#NM104}
-An index has been given a name that violates the naming convention.
+#### PG104 <LoginRequired />  {#PG104}
+Adding a `PRIMARY KEY` constraint (with its index) acquires an `ACCESS EXCLUSIVE` lock on the table, blocking all access
+during the operation. The solution is to add as follows:
 
-#### NM105 {#NM105}
-A foreign-key constraint has been given a name that violates the naming convention.
+1. Create the `UNIQUE INDEX` concurrently:
 
-#### NM106 {#NM106}
-A check constraint has been given a name that violates the naming convention.
+  ```sql title=20240101000001_add_unique_index.sql
+  CREATE UNIQUE INDEX CONCURRENTLY users_pkey ON users(id);
+  ```
 
-#### PG101 {#PG101}
-Creating an index non-concurrently locks the table against write operations.
+2. Validate the index creation and ensure it is in `VALID` state. Otherwise, the constraint creation will
+   fail with the following error:
+   ```sql
+   // highlight-next-line-error-message
+   ERROR:  index "users_pkey" is not a valid
+   ```
+   Note, this step can be automated using a [pre-migration check](/versioned/checks) on the migration file below.
 
-#### PG102 {#PG102}
-Dropping an index non-concurrently locks the table against write operations.
+3. After validating the index state, add the `PRIMARY KEY` constraint using the created index:
 
-#### PG103 {#PG103}
-Indexes cannot be created or deleted concurrently within a transaction. Add the `atlas:txmode none` directive to the
-header to prevent this file from running in a transaction.
+  ```sql title=20240101000002_add_primary_key.sql
+  ALTER TABLE users ADD PRIMARY KEY USING INDEX users_pkey;
+  ```
+
+
+#### PG105 <LoginRequired />  {#PG105}
+Adding a `UNIQUE` constraint (with its index) acquires an `ACCESS EXCLUSIVE` lock on the table, blocking all access
+during the operation. The solution is to add as follows:
+
+1. Create the `UNIQUE INDEX` concurrently:
+
+  ```sql title=20240101000001_add_unique_index.sql
+  CREATE UNIQUE INDEX CONCURRENTLY users_id_key ON users(id);
+  ```
+
+2. Validate the index creation and ensure it is in `VALID` state. Otherwise, the constraint creation will
+  fail with the following error:
+
+  ```sql
+  // highlight-next-line-error-message
+  ERROR:  index "users_id_key" is not a valid
+   ```
+  Note, this step can be automated using a [pre-migration check](/versioned/checks) on the migration file below.
+
+3. After validating the index state, add the `UNIQUE` constraint using the created index:
+
+  ```sql title=20240101000002_add_unique_const.sql
+  ALTER TABLE users ADD UNIQUE USING INDEX users_id_key;
+  ```
 
 #### PG301 <LoginRequired /> {#PG301}
 A change to the column type that requires adjusting the actual stored data and triggers a rewrite of the table and potentially
@@ -626,3 +684,27 @@ lock is acquired on the table, preventing any level of access, including `SELECT
 Adding a column with a volatile `DEFAULT` value requires a rewrite of the table. During this operation, an
 [`ACCESS EXCLUSIVE`](https://www.postgresql.org/docs/current/explicit-locking.html#LOCKING-TABLES) lock is acquired on the
 table, preventing any level of access, including `SELECT`.
+
+#### PG303 <LoginRequired /> {#PG303}
+Modifying a column from `NULL` to `NOT NULL` requires a full table scan. During this operation, an
+[`ACCESS EXCLUSIVE`](https://www.postgresql.org/docs/current/explicit-locking.html#LOCKING-TABLES) lock is acquired on the
+table, preventing any level of access, including `SELECT`.
+
+:::note Columns with CHECK constraints
+If the table has a `CHECK` constraint that ensures `NULL` cannot exist, such as `CHECK (c > 10 AND c IS NOT NULL)`,
+the table scan is skipped, and therefore this check is not reported.
+:::
+
+#### PG304 <LoginRequired /> {#PG304}
+Adding a `PRIMARY KEY` on a nullable columns implicitly sets them to `NOT NULL`, resulting a full table scan unless
+there is a `CHECK` constraint that ensures `NULL` cannot exist.
+
+#### PG305 <LoginRequired /> {#PG305}
+Adding a `CHECK` constraint without the `NOT VALID` clause requires scanning the table to verify that all rows satisfy
+the constraint. During this operation, an [`ACCESS EXCLUSIVE`](https://www.postgresql.org/docs/current/explicit-locking.html#LOCKING-TABLES)
+lock is acquired on the table, preventing any level of access, including `SELECT`.
+
+#### PG306 <LoginRequired /> {#PG306}
+Adding a `FOREIGN KEY` constraint without the `NOT VALID` clause requires a full table scan to verify that all rows
+satisfy the constraint. During this process, a `SHARE ROW EXCLUSIVE` lock is acquired on both tables blocking write
+operations.
diff --git a/doc/website/docusaurus.config.js b/doc/website/docusaurus.config.js
index 652f9250..5bcf14dc 100644
--- a/doc/website/docusaurus.config.js
+++ b/doc/website/docusaurus.config.js
@@ -96,7 +96,7 @@ module.exports = {
           "title": "Docs",
           "items": [
             {"label": "Getting Started", "to": "getting-started"},
-            {"label": "Data Definition Language ", "to": "guides/ddl"},
+            {"label": "Atlas vs Others ", "to": "atlas-vs-others"},
             {"label": "CLI Reference", "to": "cli-reference"},
             {"label": "Blog", "to": "blog"},
             {"label": "Guides", "to": "guides"},
diff --git a/doc/website/package-lock.json b/doc/website/package-lock.json
index 50489e34..0379a11e 100644
--- a/doc/website/package-lock.json
+++ b/doc/website/package-lock.json
@@ -8,7 +8,7 @@
       "name": "website",
       "version": "0.0.0",
       "dependencies": {
-        "@ariga/atlas-website": "0.0.29",
+        "@ariga/atlas-website": "0.0.32",
         "@docusaurus/core": "^2.0.0-rc.1",
         "@docusaurus/plugin-client-redirects": "^2.4.1",
         "@docusaurus/plugin-ideal-image": "^2.4.1",
@@ -296,9 +296,9 @@
       }
     },
     "node_modules/@ariga/atlas-website": {
-      "version": "0.0.29",
-      "resolved": "https://registry.npmjs.org/@ariga/atlas-website/-/atlas-website-0.0.29.tgz",
-      "integrity": "sha512-BNhvp/bMs6cub7FqrpSUS/6TFYDqSIylQS3mRo9uE0aH+5ZH2UDMUeoY5uyR0+nqWytcDaElYzmjFgD9XvtJSQ==",
+      "version": "0.0.32",
+      "resolved": "https://registry.npmjs.org/@ariga/atlas-website/-/atlas-website-0.0.32.tgz",
+      "integrity": "sha512-0eTDpnXnxccJOXfo3b4mQnGNZqTityQUt/pkfJq5ms0dXr1M0ouZV2mlbYu88YmPBKETHUqBizkiS14FPUMGTQ==",
       "dependencies": {
         "@amplitude/analytics-browser": "^1.9.4",
         "@types/amplitude-js": "^8.16.2",
@@ -321,12 +321,9 @@
         "replace-in-file": "^6.3.5",
         "tailwind-scrollbar": "^2.1.0",
         "tailwindcss": "^3.2.6",
+        "vanilla-cookieconsent": "^3.0.0-rc.17",
         "vite-plugin-dts": "^1.7.1",
         "vite-plugin-svgr": "^3.2.0"
-      },
-      "peerDependencies": {
-        "react": "^17.0.1",
-        "react-dom": "^17.0.1"
       }
     },
     "node_modules/@babel/code-frame": {
@@ -23164,6 +23161,11 @@
       "resolved": "https://registry.npmjs.org/value-equal/-/value-equal-1.0.1.tgz",
       "integrity": "sha512-NOJ6JZCAWr0zlxZt+xqCHNTEKOsrks2HQd4MqhP1qy4z1SkbEP467eNx6TgDKXMvUOb+OENfJCZwM+16n7fRfw=="
     },
+    "node_modules/vanilla-cookieconsent": {
+      "version": "3.0.1",
+      "resolved": "https://registry.npmjs.org/vanilla-cookieconsent/-/vanilla-cookieconsent-3.0.1.tgz",
+      "integrity": "sha512-gqc4x7O9t1I4xWr7x6/jtQWPr4PZK26SmeA0iyTv1WyoECfAGnu5JEOExmMEP+5Fz66AT9OiCBO3GII4wDQHLw=="
+    },
     "node_modules/vary": {
       "version": "1.1.2",
       "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",
@@ -24578,9 +24580,9 @@
       }
     },
     "@ariga/atlas-website": {
-      "version": "0.0.29",
-      "resolved": "https://registry.npmjs.org/@ariga/atlas-website/-/atlas-website-0.0.29.tgz",
-      "integrity": "sha512-BNhvp/bMs6cub7FqrpSUS/6TFYDqSIylQS3mRo9uE0aH+5ZH2UDMUeoY5uyR0+nqWytcDaElYzmjFgD9XvtJSQ==",
+      "version": "0.0.32",
+      "resolved": "https://registry.npmjs.org/@ariga/atlas-website/-/atlas-website-0.0.32.tgz",
+      "integrity": "sha512-0eTDpnXnxccJOXfo3b4mQnGNZqTityQUt/pkfJq5ms0dXr1M0ouZV2mlbYu88YmPBKETHUqBizkiS14FPUMGTQ==",
       "requires": {
         "@amplitude/analytics-browser": "^1.9.4",
         "@types/amplitude-js": "^8.16.2",
@@ -24603,6 +24605,7 @@
         "replace-in-file": "^6.3.5",
         "tailwind-scrollbar": "^2.1.0",
         "tailwindcss": "^3.2.6",
+        "vanilla-cookieconsent": "^3.0.0-rc.17",
         "vite-plugin-dts": "^1.7.1",
         "vite-plugin-svgr": "^3.2.0"
       }
@@ -41430,6 +41433,11 @@
       "resolved": "https://registry.npmjs.org/value-equal/-/value-equal-1.0.1.tgz",
       "integrity": "sha512-NOJ6JZCAWr0zlxZt+xqCHNTEKOsrks2HQd4MqhP1qy4z1SkbEP467eNx6TgDKXMvUOb+OENfJCZwM+16n7fRfw=="
     },
+    "vanilla-cookieconsent": {
+      "version": "3.0.1",
+      "resolved": "https://registry.npmjs.org/vanilla-cookieconsent/-/vanilla-cookieconsent-3.0.1.tgz",
+      "integrity": "sha512-gqc4x7O9t1I4xWr7x6/jtQWPr4PZK26SmeA0iyTv1WyoECfAGnu5JEOExmMEP+5Fz66AT9OiCBO3GII4wDQHLw=="
+    },
     "vary": {
       "version": "1.1.2",
       "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",
diff --git a/doc/website/package.json b/doc/website/package.json
index 18649cec..21851186 100644
--- a/doc/website/package.json
+++ b/doc/website/package.json
@@ -16,7 +16,7 @@
     "invalidate-cdn": "aws cloudfront create-invalidation --distribution-id E3VOJYSV9YO33D --paths \"/*\""
   },
   "dependencies": {
-    "@ariga/atlas-website": "0.0.29",
+    "@ariga/atlas-website": "0.0.32",
     "@docusaurus/core": "^2.0.0-rc.1",
     "@docusaurus/plugin-client-redirects": "^2.4.1",
     "@docusaurus/plugin-ideal-image": "^2.4.1",
diff --git a/doc/website/sidebars.js b/doc/website/sidebars.js
index 0f2ae3fc..5521d74e 100644
--- a/doc/website/sidebars.js
+++ b/doc/website/sidebars.js
@@ -19,7 +19,11 @@ module.exports = {
                 'getting-started/getting-started',
             ]
         },
-
+        {
+            type: 'doc',
+            id: 'atlas-vs-others',
+            label: 'Atlas vs Others'
+        },
         {
             type: "category",
             label: "Declarative Workflows",
@@ -189,33 +193,23 @@ module.exports = {
                 },
                 {
                     type: 'doc',
-                    id: 'guides/deploying/image',
-                    label: 'Creating container images'
-                },
-                {
-                    type: 'doc',
-                    id: 'guides/deploying/aws-ecs-fargate',
-                    label: 'AWS ECS (Fargate)'
-                },
-                {
-                    type: 'doc',
-                    id: 'guides/deploying/helm',
-                    label: 'Kubernetes (Helm)'
+                    id: 'guides/deploying/k8s-argo',
+                    label: 'Kubernetes (Argo CD)'
                 },
                 {
                     type: 'doc',
-                    id: 'guides/deploying/k8s-init-containers',
-                    label: 'Kubernetes (Init Container)'
+                    id: 'guides/deploying/k8s-flux',
+                    label: 'Kubernetes (Flux CD)'
                 },
                 {
                     type: 'doc',
-                    id: 'guides/deploying/k8s-argo',
-                    label: 'Kubernetes (Argo CD)'
+                    id: 'guides/deploying/image',
+                    label: 'Creating container images'
                 },
                 {
                     type: 'doc',
-                    id: 'guides/deploying/k8s-flux',
-                    label: 'Kubernetes (Flux CD)'
+                    id: 'guides/deploying/aws-ecs-fargate',
+                    label: 'AWS ECS (Fargate)'
                 },
                 {
                     type: 'doc',
@@ -501,5 +495,22 @@ module.exports = {
             type: 'doc',
             id: 'guides/ddl'
         },
+        {
+            type: 'category',
+            label: 'Archive',
+            collapsed: false,
+            items: [
+                {
+                    type: 'doc',
+                    id: 'guides/deploying/helm',
+                    label: 'Kubernetes (Helm)'
+                },
+                {
+                    type: 'doc',
+                    id: 'guides/deploying/k8s-init-containers',
+                    label: 'Kubernetes (Init Container)'
+                },
+            ]
+        }
     ]
 };
diff --git a/internal/integration/go.mod b/internal/integration/go.mod
index 0db9154b..9683324c 100644
--- a/internal/integration/go.mod
+++ b/internal/integration/go.mod
@@ -96,13 +96,13 @@ require (
 	go.opentelemetry.io/otel/metric v1.24.0 // indirect
 	go.opentelemetry.io/otel/trace v1.24.0 // indirect
 	gocloud.dev v0.36.0 // indirect
-	golang.org/x/crypto v0.19.0 // indirect
+	golang.org/x/crypto v0.22.0 // indirect
 	golang.org/x/exp v0.0.0-20240213143201-ec583247a57a // indirect
 	golang.org/x/mod v0.15.0 // indirect
-	golang.org/x/net v0.21.0 // indirect
+	golang.org/x/net v0.24.0 // indirect
 	golang.org/x/oauth2 v0.16.0 // indirect
 	golang.org/x/sync v0.6.0 // indirect
-	golang.org/x/sys v0.17.0 // indirect
+	golang.org/x/sys v0.19.0 // indirect
 	golang.org/x/text v0.14.0 // indirect
 	golang.org/x/time v0.4.0 // indirect
 	golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect
diff --git a/internal/integration/go.sum b/internal/integration/go.sum
index 5558531c..c8bbdcd1 100644
--- a/internal/integration/go.sum
+++ b/internal/integration/go.sum
@@ -449,8 +449,8 @@ golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8U
 golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
 golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
 golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
-golang.org/x/crypto v0.19.0 h1:ENy+Az/9Y1vSrlrvBSyna3PITt4tiZLf7sgCjZBX7Wo=
-golang.org/x/crypto v0.19.0/go.mod h1:Iy9bg/ha4yyC70EfRS8jz+B6ybOBKMaSxLj6P6oBDfU=
+golang.org/x/crypto v0.22.0 h1:g1v0xeRhjcugydODzvb3mEM9SQ0HGp9s/nh3COQ/C30=
+golang.org/x/crypto v0.22.0/go.mod h1:vr6Su+7cTlO45qkww3VDJlzDn0ctJvRgYbC2NvXHt+M=
 golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
 golang.org/x/exp v0.0.0-20240213143201-ec583247a57a h1:HinSgX1tJRX3KsL//Gxynpw5CTOAIPhgL4W8PNiIpVE=
 golang.org/x/exp v0.0.0-20240213143201-ec583247a57a/go.mod h1:CxmFvTBINI24O/j8iY7H1xHzx2i4OsyguNBmN/uPtqc=
@@ -483,8 +483,8 @@ golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwY
 golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
 golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
 golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
-golang.org/x/net v0.21.0 h1:AQyQV4dYCvJ7vGmJyKki9+PBdyvhkSd8EIx/qb0AYv4=
-golang.org/x/net v0.21.0/go.mod h1:bIjVDfnllIU7BJ2DNgfnXvpSvtn8VRwhlsaeUTyUS44=
+golang.org/x/net v0.24.0 h1:1PcaxkF854Fu3+lvBIx5SYn9wRlBzzcnHZSiaFFAb0w=
+golang.org/x/net v0.24.0/go.mod h1:2Q7sJY5mzlzWjKtYUEXSlBWCdyaioyXzRB2RtU8KVE8=
 golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
 golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
 golang.org/x/oauth2 v0.16.0 h1:aDkGMBSYxElaoP81NpoUoz2oo2R2wHdZpGToUxfyQrQ=
@@ -527,8 +527,8 @@ golang.org/x/sys v0.0.0-20220310020820-b874c991c1a5/go.mod h1:oPkhp1MJrh7nUepCBc
 golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
 golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
 golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/sys v0.17.0 h1:25cE3gD+tdBA7lp7QfhuV+rJiE9YXTcS3VG1SqssI/Y=
-golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
+golang.org/x/sys v0.19.0 h1:q5f1RH2jigJ1MoAWp2KTp3gm5zAGFUTarQZ5U386+4o=
+golang.org/x/sys v0.19.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
 golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
 golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
 golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
diff --git a/sql/internal/specutil/convert.go b/sql/internal/specutil/convert.go
index a38f2313..50341028 100644
--- a/sql/internal/specutil/convert.go
+++ b/sql/internal/specutil/convert.go
@@ -680,10 +680,10 @@ func FromView(v *schema.View, colFn ViewColumnSpecFunc, idxFn IndexSpecFunc) (*s
 		}
 		spec.Indexes = append(spec.Indexes, i)
 	}
-	as := v.Def
+	as := normalizeCRLF(v.Def)
 	// In case the view definition is multi-line,
 	// format it as indented heredoc with two spaces.
-	if lines := strings.Split(v.Def, "\n"); len(lines) > 1 {
+	if lines := strings.Split(as, "\n"); len(lines) > 1 {
 		as = fmt.Sprintf("<<-SQL\n  %s\n  SQL", strings.Join(lines, "\n  "))
 	}
 	embed := &schemahcl.Resource{
@@ -708,6 +708,15 @@ func FromView(v *schema.View, colFn ViewColumnSpecFunc, idxFn IndexSpecFunc) (*s
 	return spec, nil
 }
 
+// normalizeCRLF for heredoc strings that inspected and printed in the HCL as-is to
+// avoid having mixed endings in the printed file - Unix-like (default) and Windows-like.
+func normalizeCRLF(s string) string {
+	if strings.Contains(s, "\r\n") {
+		return strings.ReplaceAll(s, "\r\n", "\n")
+	}
+	return s
+}
+
 // dependsOn returns the depends_on attribute for the given objects.
 func dependsOn(realm *schema.Realm, objects []schema.Object) (*schemahcl.Attr, bool) {
 	var (
diff --git a/sql/internal/sqlx/plan.go b/sql/internal/sqlx/plan.go
index 453d6d4c..da42416a 100644
--- a/sql/internal/sqlx/plan.go
+++ b/sql/internal/sqlx/plan.go
@@ -369,7 +369,7 @@ func byKeys[T any](m map[string]T) []struct {
 	vs := make([]struct {
 		K string
 		V T
-	}, len(m))
+	}, 0, len(m))
 	for k, v := range m {
 		vs = append(vs, struct {
 			K string
diff --git a/sql/postgres/inspect.go b/sql/postgres/inspect.go
index 58ad8580..09b49164 100644
--- a/sql/postgres/inspect.go
+++ b/sql/postgres/inspect.go
@@ -701,20 +701,22 @@ func (i *inspect) addChecks(s *schema.Schema, rows *sql.Rows) error {
 		if !ok {
 			return fmt.Errorf("table %q was not found in schema", table)
 		}
-		if _, ok := t.Column(column); !ok {
+		c, ok := t.Column(column)
+		if !ok {
 			return fmt.Errorf("postgres: column %q was not found for check %q", column, name)
 		}
-		check, ok := names[tc{t: table, n: name}]
+		ck, ok := names[tc{t: table, n: name}]
 		if !ok {
-			check = &schema.Check{Name: name, Expr: clause, Attrs: []schema.Attr{&CheckColumns{}}}
+			ck = &schema.Check{Name: name, Expr: clause, Attrs: []schema.Attr{&CheckColumns{}}}
 			if noInherit {
-				check.Attrs = append(check.Attrs, &NoInherit{})
+				ck.AddAttrs(&NoInherit{})
 			}
-			names[tc{t: table, n: name}] = check
-			t.Attrs = append(t.Attrs, check)
+			names[tc{t: table, n: name}] = ck
+			t.AddAttrs(ck)
 		}
-		c := check.Attrs[0].(*CheckColumns)
-		c.Columns = append(c.Columns, column)
+		c.AddAttrs(ck)
+		attr := ck.Attrs[0].(*CheckColumns)
+		attr.Columns = append(attr.Columns, column)
 	}
 	return nil
 }
diff --git a/sql/postgres/migrate.go b/sql/postgres/migrate.go
index 14335c44..66120b31 100644
--- a/sql/postgres/migrate.go
+++ b/sql/postgres/migrate.go
@@ -513,25 +513,29 @@ func (s *state) alterTable(t *schema.Table, changes []schema.Change) error {
 				b.P("DROP COLUMN").Ident(change.C.Name)
 				reverse = append(reverse, &schema.AddColumn{C: change.C})
 			case *AddUniqueConstraint:
-				b.P("ADD CONSTRAINT").Ident(change.Name).P("UNIQUE USING INDEX").Ident(change.Using.Name)
+				b.P("ADD")
 				drop := change.Using
-				if drop.Name != change.Name {
+				if change.Name != "" {
+					b.P("CONSTRAINT").Ident(change.Name)
 					drop = sqlx.P(*change.Using)
 					drop.Name = change.Name
 				}
+				b.P("UNIQUE USING INDEX").Ident(change.Using.Name)
 				// Translated to the DROP CONSTRAINT below,
 				// which drops the index as well.
 				reverse = append(reverse, &schema.DropIndex{I: drop})
 			case *AddPKConstraint:
-				b.P("ADD CONSTRAINT").Ident(change.Name).P("PRIMARY KEY USING INDEX").Ident(change.Using.Name)
+				b.P("ADD")
 				drop := change.Using
-				if drop.Name != change.Name {
+				if change.Name != "" {
+					b.P("CONSTRAINT").Ident(change.Name)
 					drop = sqlx.P(*change.Using)
 					drop.Name = change.Name
 				}
+				b.P("PRIMARY KEY USING INDEX").Ident(change.Using.Name)
 				// Translated to the DROP CONSTRAINT below,
 				// which drops the index as well.
-				reverse = append(reverse, &schema.DropIndex{I: drop})
+				reverse = append(reverse, &schema.DropPrimaryKey{P: drop})
 			case *schema.AddIndex:
 				b.P("ADD")
 				if err := s.unique(b, change.I); err != nil {
@@ -970,7 +974,7 @@ func (s *state) column(b *sqlx.Builder, c *schema.Column) error {
 	s.columnDefault(b, c)
 	for _, attr := range c.Attrs {
 		switch a := attr.(type) {
-		case *schema.Comment:
+		case *schema.Comment, *schema.Check:
 		case *schema.Collation:
 			b.P("COLLATE").Ident(a.V)
 		case *Identity, *schema.GeneratedExpr:
diff --git a/sql/postgres/postgrescheck/postgrescheck.go b/sql/postgres/postgrescheck/postgrescheck.go
index 53710af4..ae80876a 100644
--- a/sql/postgres/postgrescheck/postgrescheck.go
+++ b/sql/postgres/postgrescheck/postgrescheck.go
@@ -5,15 +5,10 @@
 package postgrescheck
 
 import (
-	"context"
-	"errors"
 	"fmt"
 
 	"ariga.io/atlas/schemahcl"
-	"ariga.io/atlas/sql/internal/sqlx"
-	"ariga.io/atlas/sql/migrate"
 	"ariga.io/atlas/sql/postgres"
-	"ariga.io/atlas/sql/schema"
 	"ariga.io/atlas/sql/sqlcheck"
 	"ariga.io/atlas/sql/sqlcheck/condrop"
 	"ariga.io/atlas/sql/sqlcheck/datadepend"
@@ -58,135 +53,5 @@ func analyzers(r *schemahcl.Resource) ([]sqlcheck.Analyzer, error) {
 	if err != nil {
 		return nil, err
 	}
-	ci, err := NewConcurrentIndex(r)
-	if err != nil {
-		return nil, err
-	}
-	return []sqlcheck.Analyzer{ds, dd, cd, bc, nm, ci}, nil
-}
-
-type (
-	// ConcurrentIndex checks for concurrent index creation,
-	// dropping, and its transactional safety.
-	ConcurrentIndex struct {
-		ConcurrentOptions
-	}
-	// ConcurrentOptions for concurrent index creation.
-	ConcurrentOptions struct {
-		sqlcheck.Options
-		CheckCreate *bool `spec:"check_create"`
-		CheckDrop   *bool `spec:"check_drop"`
-		CheckTxMode *bool `spec:"check_txmode"`
-	}
-)
-
-// NewConcurrentIndex creates a new concurrent-index Analyzer with the given options.
-func NewConcurrentIndex(r *schemahcl.Resource) (*ConcurrentIndex, error) {
-	az := &ConcurrentIndex{}
-	az.CheckCreate = sqlx.P(true)
-	az.CheckDrop = sqlx.P(true)
-	az.CheckTxMode = sqlx.P(true)
-	if r, ok := r.Resource(az.Name()); ok {
-		if err := r.As(&az.Options); err != nil {
-			return nil, fmt.Errorf("sql/sqlcheck: parsing concurrent_index error option: %w", err)
-		}
-		if err := r.As(&az.ConcurrentOptions); err != nil {
-			return nil, fmt.Errorf("sql/sqlcheck: parsing concurrent_index check options: %w", err)
-		}
-	}
-	return az, nil
-}
-
-// Name of the analyzer. Implements the sqlcheck.NamedAnalyzer interface.
-func (*ConcurrentIndex) Name() string {
-	return "concurrent_index"
-}
-
-var (
-	// codeCreateNoCon is a PostgreSQL specific code for reporting
-	// indexes creation without the CONCURRENTLY option.
-	codeCreateNoCon = sqlcheck.Code("PG101")
-	// codeDropNoCon is a PostgreSQL specific code for reporting
-	// indexes deletion without the CONCURRENTLY option.
-	codeDropNoCon = sqlcheck.Code("PG102")
-	// codeNoTxNone is a PostgreSQL specific code for reporting indexes
-	// creation or deletion concurrently without the txmode directive set
-	// to none.
-	codeNoTxNone = sqlcheck.Code("PG103")
-)
-
-// Analyze implements sqlcheck.Analyzer.
-func (a *ConcurrentIndex) Analyze(_ context.Context, p *sqlcheck.Pass) error {
-	var (
-		notx  bool
-		notxC int
-		diags []sqlcheck.Diagnostic
-	)
-	// The txmode directive, currently defined in cmd/atlas,
-	// might be moved to sql/migrate in the future.
-	if l, ok := p.File.File.(*migrate.LocalFile); ok {
-		mode := l.Directive("txmode")
-		notx = len(mode) == 1 && mode[0] == "none"
-	}
-	for _, sc := range p.File.Changes {
-		for _, c := range sc.Changes {
-			m, ok := c.(*schema.ModifyTable)
-			// Skip modifications for tables that have been created in this file.
-			if !ok || p.File.TableSpan(m.T)&sqlcheck.SpanAdded == 1 {
-				continue
-			}
-			for i := range m.Changes {
-				switch mc := m.Changes[i].(type) {
-				case *schema.AddIndex:
-					switch hasC := sqlx.Has(mc.Extra, &postgres.Concurrently{}); {
-					case !sqlx.V(a.CheckCreate):
-					case hasC && !notx && sqlx.V(a.CheckTxMode):
-						notxC++
-					case !hasC:
-						diags = append(diags, sqlcheck.Diagnostic{
-							Pos:  sc.Stmt.Pos,
-							Code: codeCreateNoCon,
-							Text: fmt.Sprintf(
-								"Creating index %q non-concurrently causes write locks on the %q table",
-								mc.I.Name, m.T.Name,
-							),
-						})
-					}
-				case *schema.DropIndex:
-					switch hasC := sqlx.Has(mc.Extra, &postgres.Concurrently{}); {
-					case !sqlx.V(a.CheckDrop):
-					case hasC && !notx && sqlx.V(a.CheckTxMode):
-						notxC++
-					case !hasC:
-						diags = append(diags, sqlcheck.Diagnostic{
-							Pos:  sc.Stmt.Pos,
-							Code: codeDropNoCon,
-							Text: fmt.Sprintf(
-								"Dropping index %q non-concurrently causes write locks on the %q table",
-								mc.I.Name, m.T.Name,
-							),
-						})
-					}
-				}
-			}
-		}
-	}
-	if notxC > 0 {
-		diags = append([]sqlcheck.Diagnostic{{
-			Pos:  0,
-			Code: codeNoTxNone,
-			Text: "Indexes cannot be created or deleted concurrently within a transaction. Add the `atlas:txmode none` " +
-				"directive to the header to prevent this file from running in a transaction",
-		}}, diags...)
-	}
-	if len(diags) > 0 {
-		const reportText = "concurrent index violations detected"
-		p.Reporter.WriteReport(sqlcheck.Report{Text: reportText, Diagnostics: diags})
-		// Report an error only if it is configured this way and the
-		// diagnostics include non-concurrent creation or deletion.
-		if sqlx.V(a.Error) && (notxC == 0 || len(diags) > 1) {
-			return errors.New(reportText)
-		}
-	}
-	return nil
+	return []sqlcheck.Analyzer{ds, dd, cd, bc, nm}, nil
 }
diff --git a/sql/schema/schema.go b/sql/schema/schema.go
index aea7cb0f..ec49bc43 100644
--- a/sql/schema/schema.go
+++ b/sql/schema/schema.go
@@ -103,7 +103,7 @@ type (
 
 	// A ForeignKey represents an index definition.
 	ForeignKey struct {
-		Symbol     string
+		Symbol     string // Constraint name, if exists.
 		Table      *Table
 		Columns    []*Column
 		RefTable   *Table
diff --git a/sql/sqlcheck/datadepend/datadepend.go b/sql/sqlcheck/datadepend/datadepend.go
index 417fbb79..e54996aa 100644
--- a/sql/sqlcheck/datadepend/datadepend.go
+++ b/sql/sqlcheck/datadepend/datadepend.go
@@ -8,6 +8,7 @@ import (
 	"context"
 	"errors"
 	"fmt"
+	"slices"
 	"strings"
 
 	"ariga.io/atlas/schemahcl"
@@ -137,7 +138,7 @@ func (a *Analyzer) Diagnostics(_ context.Context, p *sqlcheck.Pass) (diags []sql
 					}
 				case *schema.ModifyColumn:
 					switch {
-					case p.File.TableSpan(m.T)&sqlcheck.SpanAdded == 1 || !(c.From.Type.Null && !c.To.Type.Null):
+					case p.File.TableSpan(m.T)&sqlcheck.SpanAdded == 1 || !(c.From.Type.Null && !c.To.Type.Null) || HasNotNullCheck(p, c.From):
 					case a.ModifyNotNull != nil:
 						d, err := a.Handler.ModifyNotNull(&ColumnPass{Pass: p, Change: sc, Table: m.T, Column: c.To})
 						if err != nil {
@@ -197,3 +198,20 @@ func ColumnFilled(p *sqlcheck.Pass, t *schema.Table, c *schema.Column, pos int)
 	filled, _ := pr.ColumnFilledBefore(stmts, t, c, pos)
 	return filled
 }
+
+// HasNotNullCheck checks if the given column has a check constraint with a NOT NULL check.
+// In case a CHECK exists, this reduces the risk for data-depend conflicts when changing
+// a nullable column to non-nullable.
+func HasNotNullCheck(p *sqlcheck.Pass, c *schema.Column) bool {
+	pr, ok := p.File.Parser.(interface {
+		CheckNotNullFor(*schema.Check, string) (bool, error)
+	})
+	return ok && slices.ContainsFunc(c.Attrs, func(a schema.Attr) bool {
+		ck, ok := a.(*schema.Check)
+		if !ok {
+			return false
+		}
+		v, err := pr.CheckNotNullFor(ck, c.Name)
+		return err == nil && v
+	})
+}


Test patch:
diff --git a/cmd/atlas/internal/docker/docker_test.go b/cmd/atlas/internal/docker/docker_test.go
index d99ad6a7..3b2ed113 100644
--- a/cmd/atlas/internal/docker/docker_test.go
+++ b/cmd/atlas/internal/docker/docker_test.go
@@ -144,6 +144,20 @@ func TestFromURL(t *testing.T) {
 		Out:      io.Discard,
 	}, cfg)
 
+	u, err = url.Parse("docker://postgis/14-3.4/dev")
+	require.NoError(t, err)
+	cfg, err = FromURL(u)
+	require.NoError(t, err)
+	require.Equal(t, &Config{
+		driver:   "postgres",
+		Image:    "postgis/postgis:14-3.4",
+		Database: "dev",
+		Env:      []string{"POSTGRES_PASSWORD=pass"},
+		Port:     "5432",
+		Out:      io.Discard,
+		setup:    []string{`CREATE DATABASE "dev"`},
+	}, cfg)
+
 	// SQL Server
 	u, err = url.Parse("docker://sqlserver")
 	require.NoError(t, err)
diff --git a/internal/integration/testdata/postgres/cli-migrate-lint-concurrent-idx.txt b/internal/integration/testdata/postgres/cli-migrate-lint-concurrent-idx.txt
deleted file mode 100644
index 3199fb04..00000000
--- a/internal/integration/testdata/postgres/cli-migrate-lint-concurrent-idx.txt
+++ /dev/null
@@ -1,152 +0,0 @@
-only postgres15
-
-# Ignore tables that were created in the same file.
-atlas migrate lint --dir file://migrations1 --dev-url URL --latest=1
-stdout 'Analyzing changes until version 1 \(1 migration in total\):'
-stdout ''
-stdout '  -- analyzing version 1'
-stdout '    -- no diagnostics found'
-stdout '  -- ok \(.+\)'
-stdout ''
-stdout '  -------------------------'
-stdout '  -- .+'
-stdout '  -- 1 version ok'
-stdout '  -- 2 schema changes'
-
-atlas migrate lint --dir file://migrations2 --dev-url URL --latest=1
-stdout 'Analyzing changes from version 1 to 2 \(1 migration in total\):'
-stdout ''
-stdout '  -- analyzing version 2'
-stdout '    -- concurrent index violations detected:'
-stdout '      -- L1: Dropping index "i1" non-concurrently causes write locks on the "t" table'
-stdout '         https://atlasgo.io/lint/analyzers#PG102'
-stdout '      -- L2: Creating index "i2" non-concurrently causes write locks on the "t" table'
-stdout '         https://atlasgo.io/lint/analyzers#PG101'
-stdout '  -- ok \(.+\)'
-stdout ''
-stdout '  -------------------------'
-stdout '  -- .+'
-stdout '  -- 1 version with warnings'
-stdout '  -- 2 schema changes'
-stdout '  -- 2 diagnostics'
-
-atlas migrate lint --dir file://migrations3 --dev-url URL --latest=1
-stdout 'Analyzing changes from version 1 to 2 \(1 migration in total\):'
-stdout ''
-stdout '  -- analyzing version 2'
-stdout '    -- concurrent index violations detected:'
-stdout '      -- L1: Indexes cannot be created or deleted concurrently within a transaction. Add the'
-stdout '         `atlas:txmode none` directive to the header to prevent this file from running in a'
-stdout '         transaction https://atlasgo.io/lint/analyzers#PG103'
-stdout '  -- ok \(.+\)'
-stdout ''
-stdout '  -------------------------'
-stdout '  -- .+'
-stdout '  -- 1 version with warnings'
-stdout '  -- 1 schema change'
-stdout '  -- 1 diagnostic'
-
-atlas migrate lint --dir file://migrations4 --dev-url URL --latest=1
-stdout 'Analyzing changes from version 1 to 2 \(1 migration in total\):'
-stdout ''
-stdout '  -- analyzing version 2'
-stdout '    -- concurrent index violations detected:'
-stdout '      -- L1: Indexes cannot be created or deleted concurrently within a transaction. Add the'
-stdout '         `atlas:txmode none` directive to the header to prevent this file from running in a'
-stdout '         transaction https://atlasgo.io/lint/analyzers#PG103'
-stdout '      -- L2: Creating index "i1" non-concurrently causes write locks on the "t" table'
-stdout '         https://atlasgo.io/lint/analyzers#PG101'
-stdout '  -- ok \(.+\)'
-stdout ''
-stdout '  -------------------------'
-stdout '  -- .+'
-stdout '  -- 1 version with warnings'
-stdout '  -- 2 schema changes'
-stdout '  -- 2 diagnostics'
-
-atlas migrate lint --dir file://migrations5 --dev-url URL --latest=1
-stdout 'Analyzing changes from version 1 to 2 \(1 migration in total\):'
-stdout ''
-stdout '  -- analyzing version 2'
-stdout '    -- concurrent index violations detected:'
-stdout '      -- L1: Dropping index "i1" non-concurrently causes write locks on the "t" table'
-stdout '         https://atlasgo.io/lint/analyzers#PG102'
-stdout '  -- ok \(.+\)'
-stdout ''
-stdout '  -------------------------'
-stdout '  -- .+'
-stdout '  -- 1 version with warnings'
-stdout '  -- 1 schema change'
-stdout '  -- 1 diagnostic'
-
-atlas migrate lint --dir file://migrations6 --dev-url URL --latest=1
-stdout 'Analyzing changes from version 1 to 2 \(1 migration in total\):'
-stdout ''
-stdout '  -- analyzing version 2'
-stdout '    -- concurrent index violations detected:'
-stdout '      -- L1: Indexes cannot be created or deleted concurrently within a transaction. Add the'
-stdout '         `atlas:txmode none` directive to the header to prevent this file from running in a'
-stdout '         transaction https://atlasgo.io/lint/analyzers#PG103'
-stdout '  -- ok \(.+\)'
-stdout ''
-stdout '  -------------------------'
-stdout '  -- .+'
-stdout '  -- 1 version with warnings'
-stdout '  -- 1 schema change'
-stdout '  -- 1 diagnostic'
-
-atlas migrate lint --dir file://migrations7 --dev-url URL --latest=1
-stdout 'Analyzing changes from version 1 to 2 \(1 migration in total\):'
-stdout ''
-stdout '  -- analyzing version 2'
-stdout '    -- no diagnostics found'
-stdout '  -- ok \(.+\)'
-stdout ''
-stdout '  -------------------------'
-stdout '  -- .+'
-stdout '  -- 1 version ok'
-stdout '  -- 2 schema changes'
-
--- migrations1/1.sql --
-CREATE TABLE t(c int);
-CREATE INDEX i ON t(c);
-
--- migrations2/1.sql --
-CREATE TABLE t(c int);
-CREATE INDEX i1 ON t(c);
--- migrations2/2.sql --
-DROP INDEX i1;
-CREATE INDEX i2 ON t(c);
-
--- migrations3/1.sql --
-CREATE TABLE t(c int);
--- migrations3/2.sql --
-CREATE INDEX CONCURRENTLY i ON t(c);
-
--- migrations4/1.sql --
-CREATE TABLE t(c int);
--- migrations4/2.sql --
-CREATE INDEX CONCURRENTLY i2 ON t(c);
-CREATE INDEX i1 ON t(c);
-
--- migrations5/1.sql --
-CREATE TABLE t(c int);
-CREATE INDEX i1 ON t(c);
--- migrations5/2.sql --
-DROP INDEX i1;
-
--- migrations6/1.sql --
-CREATE TABLE t(c int);
-CREATE INDEX i1 ON t(c);
--- migrations6/2.sql --
-DROP INDEX CONCURRENTLY i1;
-
--- migrations7/1.sql --
-CREATE TABLE t(c int);
-CREATE INDEX i1 ON t(c);
-CREATE INDEX i2 ON t(c);
--- migrations7/2.sql --
--- atlas:txmode none
-
-DROP INDEX CONCURRENTLY i1;
-DROP INDEX CONCURRENTLY script_cli_migrate_lint_concurrent_idx.i2;
diff --git a/internal/integration/testdata/postgres/cli-migrate-lint-modify-nullability.txt b/internal/integration/testdata/postgres/cli-migrate-lint-modify-nullability.txt
index b7b10e9d..796776d3 100644
--- a/internal/integration/testdata/postgres/cli-migrate-lint-modify-nullability.txt
+++ b/internal/integration/testdata/postgres/cli-migrate-lint-modify-nullability.txt
@@ -67,14 +67,8 @@ CREATE TABLE users (id int);
 ALTER TABLE users ADD COLUMN "rank" int NULL DEFAULT 1;
 ALTER TABLE users ALTER COLUMN "id" SET NOT NULL;
 
--- expected1.txt --
-2.sql: data dependent changes detected:
-
-	L2: Modifying nullable column "id" to non-nullable might fail in case it contains NULL values
-
 -- migrations2/1.sql --
 CREATE TABLE users (id int);
-
 -- migrations2/2.sql --
 -- Add (a, b, c), backfill (a, b) and then modify all to not-null.
 ALTER TABLE users ADD COLUMN "a" int, ADD COLUMN "b" int, ADD COLUMN "c" int;
@@ -82,11 +76,6 @@ UPDATE users SET "a" = 1;
 UPDATE users SET "b" = 1 WHERE "b" IS NULL;
 ALTER TABLE users ALTER COLUMN "a" SET NOT NULL, ALTER COLUMN "b" SET NOT NULL, ALTER COLUMN "c" SET NOT NULL;
 
--- expected2.txt --
-2.sql: data dependent changes detected:
-
-	L5: Modifying nullable column "c" to non-nullable might fail in case it contains NULL values
-
 -- migrations3/1.sql --
 CREATE TABLE users (id int);
 ALTER TABLE users ALTER COLUMN "id" SET NOT NULL;
@@ -105,10 +94,3 @@ ALTER TABLE pets ADD COLUMN name varchar(255), ADD COLUMN age float;
 UPDATE pets SET name = 'Unknown', age = 0 WHERE random() > 0.5;
 -- With diagnostics as statement above cannot be sure NULL values are back-filled.
 ALTER TABLE pets ALTER COLUMN name SET NOT NULL, ALTER COLUMN age SET NOT NULL;
-
--- expected4.txt --
-2.sql: data dependent changes detected:
-
-	L9: Modifying nullable column "name" to non-nullable might fail in case it contains NULL values
-	L9: Modifying nullable column "age" to non-nullable might fail in case it contains NULL values
-
diff --git a/sql/internal/specutil/convert_test.go b/sql/internal/specutil/convert_test.go
index 8448c8f7..6b00d20d 100644
--- a/sql/internal/specutil/convert_test.go
+++ b/sql/internal/specutil/convert_test.go
@@ -145,3 +145,17 @@ func TestDefault(t *testing.T) {
 		require.True(t, tt.v.Equals(v).True())
 	}
 }
+
+func TestFromView(t *testing.T) {
+	spec, err := FromView(&schema.View{
+		Name:   "view",
+		Def:    "SELECT * FROM users\r\n WHERE c NOT LIKE \"\\r\\n\"",
+		Schema: schema.New("public").SetRealm(schema.NewRealm()),
+	}, nil, nil)
+	require.NoError(t, err)
+	as, ok := spec.DefaultExtension.Attr("as")
+	require.True(t, ok)
+	s, err := as.String()
+	require.NoError(t, err)
+	require.Equal(t, "<<-SQL\n  SELECT * FROM users\n   WHERE c NOT LIKE \"\\r\\n\"\n  SQL", s)
+}
diff --git a/sql/postgres/inspect_test.go b/sql/postgres/inspect_test.go
index 7c38f9d5..c9994783 100644
--- a/sql/postgres/inspect_test.go
+++ b/sql/postgres/inspect_test.go
@@ -316,18 +316,19 @@ users        | users_check1       | (((c2 + c1) + c3) > 10) | c3          | {2,1
 				require.NoError(err)
 				require.Equal("users", t.Name)
 				require.Equal("public", t.Schema.Name)
-				require.EqualValues([]*schema.Column{
-					{Name: "c1", Type: &schema.ColumnType{Raw: "integer", Type: &schema.IntegerType{T: "integer"}}},
-					{Name: "c2", Type: &schema.ColumnType{Raw: "integer", Type: &schema.IntegerType{T: "integer"}}},
-					{Name: "c3", Type: &schema.ColumnType{Raw: "integer", Type: &schema.IntegerType{T: "integer"}}},
-				}, t.Columns)
-				require.EqualValues([]schema.Attr{
+				checks := []schema.Attr{
 					&schema.Check{Name: "boring", Expr: "(c1 > 1)", Attrs: []schema.Attr{&CheckColumns{Columns: []string{"c1"}}, &NoInherit{}}},
 					&schema.Check{Name: "users_c2_check", Expr: "(c2 > 0)", Attrs: []schema.Attr{&CheckColumns{Columns: []string{"c2"}}}},
 					&schema.Check{Name: "users_c2_check1", Expr: "(c2 > 0)", Attrs: []schema.Attr{&CheckColumns{Columns: []string{"c2"}}}},
 					&schema.Check{Name: "users_check", Expr: "((c2 + c1) > 2)", Attrs: []schema.Attr{&CheckColumns{Columns: []string{"c2", "c1"}}}},
 					&schema.Check{Name: "users_check1", Expr: "(((c2 + c1) + c3) > 10)", Attrs: []schema.Attr{&CheckColumns{Columns: []string{"c2", "c1", "c3"}}}},
-				}, t.Attrs)
+				}
+				require.EqualValues([]*schema.Column{
+					{Name: "c1", Type: &schema.ColumnType{Raw: "integer", Type: &schema.IntegerType{T: "integer"}}, Attrs: []schema.Attr{checks[0], checks[3], checks[4]}},
+					{Name: "c2", Type: &schema.ColumnType{Raw: "integer", Type: &schema.IntegerType{T: "integer"}}, Attrs: []schema.Attr{checks[1], checks[2], checks[3], checks[4]}},
+					{Name: "c3", Type: &schema.ColumnType{Raw: "integer", Type: &schema.IntegerType{T: "integer"}}, Attrs: []schema.Attr{checks[4]}},
+				}, t.Columns)
+				require.EqualValues(checks, t.Attrs)
 			},
 		},
 	}
diff --git a/sql/postgres/migrate_test.go b/sql/postgres/migrate_test.go
index 732bb825..470d6bcb 100644
--- a/sql/postgres/migrate_test.go
+++ b/sql/postgres/migrate_test.go
@@ -486,7 +486,70 @@ func TestPlanChanges(t *testing.T) {
 				},
 			},
 		},
-		// Add a primary key using index.
+		// Add a named unique constraint using index.
+		{
+			changes: []schema.Change{
+				func() schema.Change {
+					users := schema.NewTable("users").
+						SetSchema(schema.New("test")).
+						AddColumns(
+							schema.NewIntColumn("id", "bigint"),
+						)
+					users.SetPrimaryKey(schema.NewPrimaryKey(users.Columns...))
+					return &schema.ModifyTable{
+						T: users,
+						Changes: []schema.Change{
+							&AddUniqueConstraint{
+								Name:  "users_unique",
+								Using: schema.NewUniqueIndex("boring"),
+							},
+						},
+					}
+				}(),
+			},
+			wantPlan: &migrate.Plan{
+				Reversible:    true,
+				Transactional: true,
+				Changes: []*migrate.Change{
+					{
+						Cmd:     `ALTER TABLE "test"."users" ADD CONSTRAINT "users_unique" UNIQUE USING INDEX "boring"`,
+						Reverse: `ALTER TABLE "test"."users" DROP CONSTRAINT "users_unique"`,
+					},
+				},
+			},
+		},
+		// Add an unnamed unique constraint using index.
+		{
+			changes: []schema.Change{
+				func() schema.Change {
+					users := schema.NewTable("users").
+						SetSchema(schema.New("test")).
+						AddColumns(
+							schema.NewIntColumn("id", "bigint"),
+						)
+					users.SetPrimaryKey(schema.NewPrimaryKey(users.Columns...))
+					return &schema.ModifyTable{
+						T: users,
+						Changes: []schema.Change{
+							&AddUniqueConstraint{
+								Using: schema.NewUniqueIndex("boring"),
+							},
+						},
+					}
+				}(),
+			},
+			wantPlan: &migrate.Plan{
+				Reversible:    true,
+				Transactional: true,
+				Changes: []*migrate.Change{
+					{
+						Cmd:     `ALTER TABLE "test"."users" ADD UNIQUE USING INDEX "boring"`,
+						Reverse: `ALTER TABLE "test"."users" DROP CONSTRAINT "boring"`,
+					},
+				},
+			},
+		},
+		// Add a named primary key constraint using index.
 		{
 			changes: []schema.Change{
 				func() schema.Change {
@@ -518,6 +581,37 @@ func TestPlanChanges(t *testing.T) {
 				},
 			},
 		},
+		// Add an unnamed primary key constraint using index.
+		{
+			changes: []schema.Change{
+				func() schema.Change {
+					users := schema.NewTable("users").
+						SetSchema(schema.New("test")).
+						AddColumns(
+							schema.NewIntColumn("id", "bigint"),
+						)
+					users.SetPrimaryKey(schema.NewPrimaryKey(users.Columns...))
+					return &schema.ModifyTable{
+						T: users,
+						Changes: []schema.Change{
+							&AddPKConstraint{
+								Using: schema.NewUniqueIndex("users_pkey"),
+							},
+						},
+					}
+				}(),
+			},
+			wantPlan: &migrate.Plan{
+				Reversible:    true,
+				Transactional: true,
+				Changes: []*migrate.Change{
+					{
+						Cmd:     `ALTER TABLE "test"."users" ADD PRIMARY KEY USING INDEX "users_pkey"`,
+						Reverse: `ALTER TABLE "test"."users" DROP CONSTRAINT "users_pkey"`,
+					},
+				},
+			},
+		},
 		// Modify a primary key.
 		{
 			changes: []schema.Change{
diff --git a/sql/postgres/postgrescheck/postgrescheck_test.go b/sql/postgres/postgrescheck/postgrescheck_test.go
index f71b33c0..f8beb66d 100644
--- a/sql/postgres/postgrescheck/postgrescheck_test.go
+++ b/sql/postgres/postgrescheck/postgrescheck_test.go
@@ -8,10 +8,8 @@ import (
 	"context"
 	"testing"
 
-	"ariga.io/atlas/schemahcl"
 	"ariga.io/atlas/sql/migrate"
 	"ariga.io/atlas/sql/postgres"
-	"ariga.io/atlas/sql/postgres/postgrescheck"
 	_ "ariga.io/atlas/sql/postgres/postgrescheck"
 	"ariga.io/atlas/sql/schema"
 	"ariga.io/atlas/sql/sqlcheck"
@@ -19,144 +17,6 @@ import (
 	"github.com/stretchr/testify/require"
 )
 
-func TestConcurrentIndex(t *testing.T) {
-	var cfg struct {
-		schemahcl.DefaultExtension
-	}
-	// language=hcl
-	err := schemahcl.New().EvalBytes([]byte(`
-concurrent_index {
-  error = true
-}
-`), &cfg, nil)
-	require.NoError(t, err)
-	require.NoError(t, err)
-	az, err := postgrescheck.NewConcurrentIndex(cfg.Remain())
-	require.NoError(t, err)
-
-	t.Run("MissingConcurrent", func(t *testing.T) {
-		var report *sqlcheck.Report
-		err := az.Analyze(context.Background(), &sqlcheck.Pass{
-			File: &sqlcheck.File{
-				File: migrate.NewLocalFile("1.sql", []byte("CREATE INDEX i1 ON t(c);")),
-				Changes: []*sqlcheck.Change{
-					{
-						Changes: schema.Changes{
-							&schema.ModifyTable{
-								T: schema.NewTable("Users").SetSchema(schema.New("public")),
-								Changes: schema.Changes{
-									&schema.AddIndex{
-										I: schema.NewIndex("i1"),
-									},
-								},
-							},
-						},
-						Stmt: &migrate.Stmt{
-							Pos:  0,
-							Text: "CREATE INDEX i1 ON t(c)",
-						},
-					},
-				},
-			},
-			Reporter: sqlcheck.ReportWriterFunc(func(r sqlcheck.Report) {
-				report = &r
-			}),
-		})
-		require.EqualError(t, err, "concurrent index violations detected")
-		require.Len(t, report.Diagnostics, 1)
-		require.Equal(t, report.Diagnostics[0].Text, `Creating index "i1" non-concurrently causes write locks on the "Users" table`)
-	})
-
-	t.Run("MissingTxMode", func(t *testing.T) {
-		var report *sqlcheck.Report
-		err := az.Analyze(context.Background(), &sqlcheck.Pass{
-			File: &sqlcheck.File{
-				File: migrate.NewLocalFile("1.sql", []byte("CREATE INDEX CONCURRENTLY i1 ON t(c);")),
-				Changes: []*sqlcheck.Change{
-					{
-						Changes: schema.Changes{
-							&schema.ModifyTable{
-								T: schema.NewTable("Users").SetSchema(schema.New("public")),
-								Changes: schema.Changes{
-									&schema.AddIndex{
-										I: schema.NewIndex("i1"),
-										Extra: []schema.Clause{
-											&postgres.Concurrently{},
-										},
-									},
-								},
-							},
-						},
-						Stmt: &migrate.Stmt{
-							Pos:  0,
-							Text: "CREATE INDEX CONCURRENTLY i1 ON t(c)",
-						},
-					},
-				},
-			},
-			Reporter: sqlcheck.ReportWriterFunc(func(r sqlcheck.Report) {
-				report = &r
-			}),
-		})
-		require.NoError(t, err)
-		require.Len(t, report.Diagnostics, 1)
-		require.Equal(t, report.Diagnostics[0].Text, "Indexes cannot be created or deleted concurrently within a transaction. Add the `atlas:txmode none` directive to the header to prevent this file from running in a transaction")
-	})
-
-	t.Run("MixedReport", func(t *testing.T) {
-		var report *sqlcheck.Report
-		err := az.Analyze(context.Background(), &sqlcheck.Pass{
-			File: &sqlcheck.File{
-				File: migrate.NewLocalFile("1.sql", []byte("CREATE INDEX CONCURRENTLY i1 ON t(c);DROP INDEX i2;")),
-				Changes: []*sqlcheck.Change{
-					{
-						Changes: schema.Changes{
-							&schema.ModifyTable{
-								T: schema.NewTable("Users").SetSchema(schema.New("public")),
-								Changes: schema.Changes{
-									&schema.AddIndex{
-										I: schema.NewIndex("i1"),
-										Extra: []schema.Clause{
-											&postgres.Concurrently{},
-										},
-									},
-								},
-							},
-						},
-						Stmt: &migrate.Stmt{
-							Pos:  0,
-							Text: "CREATE INDEX CONCURRENTLY i1 ON t(c)",
-						},
-					},
-					{
-						Changes: schema.Changes{
-							&schema.ModifyTable{
-								T: schema.NewTable("Users").SetSchema(schema.New("public")),
-								Changes: schema.Changes{
-									&schema.DropIndex{
-										I: schema.NewIndex("i2"),
-									},
-								},
-							},
-						},
-						Stmt: &migrate.Stmt{
-							Pos:  0,
-							Text: "DROP INDEX i2",
-						},
-					},
-				},
-			},
-			Reporter: sqlcheck.ReportWriterFunc(func(r sqlcheck.Report) {
-				report = &r
-			}),
-		})
-		require.EqualError(t, err, "concurrent index violations detected")
-		require.Len(t, report.Diagnostics, 2)
-		require.Equal(t, report.Diagnostics[0].Text, "Indexes cannot be created or deleted concurrently within a transaction. Add the `atlas:txmode none` directive to the header to prevent this file from running in a transaction")
-		require.Equal(t, report.Diagnostics[1].Text, `Dropping index "i2" non-concurrently causes write locks on the "Users" table`)
-	})
-}
-
 func TestDataDepend_MightFail(t *testing.T) {
 	var (
 		report *sqlcheck.Report