Browse Source

server: Add not null constraint to the transactions.index

prometheus-integration
Alexis Hernandez 6 years ago
parent
commit
c6326dfe02
  1. 13
      server/conf/evolutions/default/10.sql

13
server/conf/evolutions/default/10.sql

@ -0,0 +1,13 @@
# --- !Ups
ALTER TABLE transactions
ALTER COLUMN index SET NOT NULL,
ALTER COLUMN index DROP DEFAULT;
# --- !Downs
ALTER TABLE transactions
ALTER COLUMN index DROP NOT NULL,
ALTER COLUMN index SET DEFAULT NULL;
Loading…
Cancel
Save