Skip to content

Commit

Permalink
util, beatrix: Increase event/notification event column size
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrossie committed Feb 2, 2018
1 parent 1dd858b commit 5850eb4
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
Expand Up @@ -4,7 +4,7 @@ DROP TABLE IF EXISTS bus_ext_events;
CREATE TABLE bus_ext_events (
record_id serial unique,
class_name varchar(128) NOT NULL,
event_json varchar(2048) NOT NULL,
event_json text NOT NULL,
user_token varchar(36),
created_date datetime NOT NULL,
creating_owner varchar(50) NOT NULL,
Expand All @@ -24,7 +24,7 @@ DROP TABLE IF EXISTS bus_ext_events_history;
CREATE TABLE bus_ext_events_history (
record_id serial unique,
class_name varchar(128) NOT NULL,
event_json varchar(2048) NOT NULL,
event_json text NOT NULL,
user_token varchar(36),
created_date datetime NOT NULL,
creating_owner varchar(50) NOT NULL,
Expand Down
@@ -0,0 +1,2 @@
alter table bus_ext_events modify event_json text not null;
alter table bus_ext_events_history modify event_json text not null;
8 changes: 4 additions & 4 deletions util/src/main/resources/org/killbill/billing/util/ddl.sql
Expand Up @@ -156,7 +156,7 @@ DROP TABLE IF EXISTS notifications;
CREATE TABLE notifications (
record_id serial unique,
class_name varchar(256) NOT NULL,
event_json varchar(2048) NOT NULL,
event_json text NOT NULL,
user_token varchar(36),
created_date datetime NOT NULL,
creating_owner varchar(50) NOT NULL,
Expand All @@ -180,7 +180,7 @@ DROP TABLE IF EXISTS notifications_history;
CREATE TABLE notifications_history (
record_id serial unique,
class_name varchar(256) NOT NULL,
event_json varchar(2048) NOT NULL,
event_json text NOT NULL,
user_token varchar(36),
created_date datetime NOT NULL,
creating_owner varchar(50) NOT NULL,
Expand All @@ -201,7 +201,7 @@ DROP TABLE IF EXISTS bus_events;
CREATE TABLE bus_events (
record_id serial unique,
class_name varchar(128) NOT NULL,
event_json varchar(2048) NOT NULL,
event_json text NOT NULL,
user_token varchar(36),
created_date datetime NOT NULL,
creating_owner varchar(50) NOT NULL,
Expand All @@ -221,7 +221,7 @@ DROP TABLE IF EXISTS bus_events_history;
CREATE TABLE bus_events_history (
record_id serial unique,
class_name varchar(128) NOT NULL,
event_json varchar(2048) NOT NULL,
event_json text NOT NULL,
user_token varchar(36),
created_date datetime NOT NULL,
creating_owner varchar(50) NOT NULL,
Expand Down
@@ -0,0 +1,4 @@
alter table bus_events modify event_json text not null;
alter table bus_events_history modify event_json text not null;
alter table notifications modify event_json text not null;
alter table notifications_history modify event_json text not null;

0 comments on commit 5850eb4

Please sign in to comment.