Browse Source
Merge pull request #9033 from thingsboard/fix_bug_default_VARCHAR_length_for_notification_request_info
fix_bug_default_VARCHAR_length_notification_request.info_1M
pull/9043/head
Andrew Shvayka
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
3 additions and
1 deletions
-
application/src/main/data/upgrade/3.5.1/schema_update.sql
-
dao/src/main/resources/sql/schema-entities.sql
|
|
@ -122,3 +122,5 @@ ALTER TABLE resource |
|
|
UPDATE resource |
|
|
UPDATE resource |
|
|
SET etag = encode(sha256(decode(resource.data, 'base64')),'hex') WHERE resource.data is not null; |
|
|
SET etag = encode(sha256(decode(resource.data, 'base64')),'hex') WHERE resource.data is not null; |
|
|
|
|
|
|
|
|
|
|
|
ALTER TABLE notification_request ALTER COLUMN info SET DATA TYPE varchar(1000000); |
|
|
|
|
|
|
|
|
|
|
|
@ -826,7 +826,7 @@ CREATE TABLE IF NOT EXISTS notification_request ( |
|
|
targets VARCHAR(10000) NOT NULL, |
|
|
targets VARCHAR(10000) NOT NULL, |
|
|
template_id UUID, |
|
|
template_id UUID, |
|
|
template VARCHAR(10000000), |
|
|
template VARCHAR(10000000), |
|
|
info VARCHAR(1000), |
|
|
info VARCHAR(1000000), |
|
|
additional_config VARCHAR(1000), |
|
|
additional_config VARCHAR(1000), |
|
|
originator_entity_id UUID, |
|
|
originator_entity_id UUID, |
|
|
originator_entity_type VARCHAR(32), |
|
|
originator_entity_type VARCHAR(32), |
|
|
|