Skip to content

Commit

Permalink
chore(migrations): shrink merchant_id column of `merchant_key_store…
Browse files Browse the repository at this point in the history
…` to 64 characters (#1476)
  • Loading branch information
SanchithHegde committed Jun 19, 2023
1 parent 7ca62d3 commit 0fdd6ec
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion crates/storage_models/src/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ diesel::table! {
use crate::enums::diesel_exports::*;

merchant_key_store (merchant_id) {
#[max_length = 255]
#[max_length = 64]
merchant_id -> Varchar,
key -> Bytea,
created_at -> Timestamp,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ALTER TABLE merchant_key_store
ALTER COLUMN merchant_id TYPE VARCHAR(255);
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ALTER TABLE merchant_key_store
ALTER COLUMN merchant_id TYPE VARCHAR(64);

0 comments on commit 0fdd6ec

Please sign in to comment.