Ft/hook 39/fix char columns (#22)

* HOOK-39: Fixed all char columns

* HOOK-39: Fixed all char columns

* revert db properties
This commit is contained in:
Inal Arsanukaev 2017-09-22 11:55:00 +03:00 committed by GitHub
parent 3f3f565cd1
commit 2ebc210287
2 changed files with 31 additions and 1 deletions

View File

@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<artifactId>hooker</artifactId>
<version>1.1.5-SNAPSHOT</version>
<version>1.1.6-SNAPSHOT</version>
<packaging>jar</packaging>
<name>hooker</name>

View File

@ -0,0 +1,30 @@
ALTER TABLE hook.message ALTER COLUMN shop_id TYPE CHARACTER VARYING;
ALTER TABLE hook.message ALTER COLUMN type TYPE CHARACTER VARYING;
ALTER TABLE hook.message ALTER COLUMN event_time TYPE CHARACTER VARYING;
ALTER TABLE hook.message ALTER COLUMN party_id TYPE CHARACTER VARYING;
ALTER TABLE hook.message ALTER COLUMN invoice_id TYPE CHARACTER VARYING;
ALTER TABLE hook.message ALTER COLUMN invoice_reason TYPE CHARACTER VARYING;
ALTER TABLE hook.message ALTER COLUMN invoice_due_date TYPE CHARACTER VARYING;
ALTER TABLE hook.message ALTER COLUMN invoice_currency TYPE CHARACTER VARYING;
ALTER TABLE hook.message ALTER COLUMN invoice_created_at TYPE CHARACTER VARYING;
ALTER TABLE hook.message ALTER COLUMN invoice_status TYPE CHARACTER VARYING;
ALTER TABLE hook.message ALTER COLUMN invoice_product TYPE CHARACTER VARYING;
ALTER TABLE hook.message ALTER COLUMN invoice_description TYPE CHARACTER VARYING;
ALTER TABLE hook.message ALTER COLUMN payment_id TYPE CHARACTER VARYING;
ALTER TABLE hook.message ALTER COLUMN payment_created_at TYPE CHARACTER VARYING;
ALTER TABLE hook.message ALTER COLUMN payment_status TYPE CHARACTER VARYING;
ALTER TABLE hook.message ALTER COLUMN payment_error_code TYPE CHARACTER VARYING;
ALTER TABLE hook.message ALTER COLUMN payment_error_message TYPE CHARACTER VARYING;
ALTER TABLE hook.message ALTER COLUMN payment_currency TYPE CHARACTER VARYING;
ALTER TABLE hook.message ALTER COLUMN payment_email TYPE CHARACTER VARYING;
ALTER TABLE hook.message ALTER COLUMN payment_phone TYPE CHARACTER VARYING;
ALTER TABLE hook.message ALTER COLUMN payment_ip TYPE CHARACTER VARYING;
ALTER TABLE hook.webhook_to_events ALTER COLUMN invoice_shop_id TYPE CHARACTER VARYING;
ALTER TABLE hook.webhook_to_events ALTER COLUMN invoice_status TYPE CHARACTER VARYING;
ALTER TABLE hook.webhook_to_events ALTER COLUMN invoice_payment_status TYPE CHARACTER VARYING;
ALTER TABLE hook.webhook ALTER COLUMN party_id TYPE CHARACTER VARYING;
ALTER TABLE hook.webhook ALTER COLUMN url TYPE CHARACTER VARYING;
ALTER TABLE hook.party_key ALTER COLUMN party_id TYPE CHARACTER VARYING;