storj/storage/postgreskv/schema/2020011301_drop_not_null.down.sql
JT Olio 86093d0940 postgreskv: drop not null on buckets
Change-Id: I2a2bd7709de211a9d1808248af573f1bb630cfd5
2020-01-14 12:07:53 -07:00

3 lines
167 B
SQL

alter table pathdata alter column bucket drop default;
alter table pathdata add constraint "pathdata_bucket_fkey" FOREIGN KEY (bucket) REFERENCES buckets(bucketname);