Increase actor_name field length to account for changes to logging

This commit is contained in:
Luck 2017-11-02 19:28:49 +00:00
parent fad8a38bdf
commit c20b91d5ea
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B
6 changed files with 6 additions and 6 deletions

View File

@ -198,7 +198,7 @@ public class SqlDao extends AbstractDao {
// migrations // migrations
try (Connection connection = provider.getConnection()) { try (Connection connection = provider.getConnection()) {
try (Statement s = connection.createStatement()) { try (Statement s = connection.createStatement()) {
s.execute(prefix.apply("ALTER TABLE {prefix}actions MODIFY COLUMN actor_name VARCHAR(36)")); s.execute(prefix.apply("ALTER TABLE {prefix}actions MODIFY COLUMN actor_name VARCHAR(100)"));
s.execute(prefix.apply("ALTER TABLE {prefix}actions MODIFY COLUMN action VARCHAR(300)")); s.execute(prefix.apply("ALTER TABLE {prefix}actions MODIFY COLUMN action VARCHAR(300)"));
} }
} }

View File

@ -45,7 +45,7 @@ CREATE TABLE `{prefix}actions` (
`id` INT AUTO_INCREMENT NOT NULL, `id` INT AUTO_INCREMENT NOT NULL,
`time` BIGINT NOT NULL, `time` BIGINT NOT NULL,
`actor_uuid` VARCHAR(36) NOT NULL, `actor_uuid` VARCHAR(36) NOT NULL,
`actor_name` VARCHAR(36) NOT NULL, `actor_name` VARCHAR(100) NOT NULL,
`type` CHAR(1) NOT NULL, `type` CHAR(1) NOT NULL,
`acted_uuid` VARCHAR(36) NOT NULL, `acted_uuid` VARCHAR(36) NOT NULL,
`acted_name` VARCHAR(36) NOT NULL, `acted_name` VARCHAR(36) NOT NULL,

View File

@ -45,7 +45,7 @@ CREATE TABLE `{prefix}actions` (
`id` INT AUTO_INCREMENT NOT NULL, `id` INT AUTO_INCREMENT NOT NULL,
`time` BIGINT NOT NULL, `time` BIGINT NOT NULL,
`actor_uuid` VARCHAR(36) NOT NULL, `actor_uuid` VARCHAR(36) NOT NULL,
`actor_name` VARCHAR(36) NOT NULL, `actor_name` VARCHAR(100) NOT NULL,
`type` CHAR(1) NOT NULL, `type` CHAR(1) NOT NULL,
`acted_uuid` VARCHAR(36) NOT NULL, `acted_uuid` VARCHAR(36) NOT NULL,
`acted_name` VARCHAR(36) NOT NULL, `acted_name` VARCHAR(36) NOT NULL,

View File

@ -45,7 +45,7 @@ CREATE TABLE `{prefix}actions` (
`id` INT AUTO_INCREMENT NOT NULL, `id` INT AUTO_INCREMENT NOT NULL,
`time` BIGINT NOT NULL, `time` BIGINT NOT NULL,
`actor_uuid` VARCHAR(36) NOT NULL, `actor_uuid` VARCHAR(36) NOT NULL,
`actor_name` VARCHAR(36) NOT NULL, `actor_name` VARCHAR(100) NOT NULL,
`type` CHAR(1) NOT NULL, `type` CHAR(1) NOT NULL,
`acted_uuid` VARCHAR(36) NOT NULL, `acted_uuid` VARCHAR(36) NOT NULL,
`acted_name` VARCHAR(36) NOT NULL, `acted_name` VARCHAR(36) NOT NULL,

View File

@ -41,7 +41,7 @@ CREATE TABLE "{prefix}actions" (
"id" SERIAL PRIMARY KEY NOT NULL, "id" SERIAL PRIMARY KEY NOT NULL,
"time" BIGINT NOT NULL, "time" BIGINT NOT NULL,
"actor_uuid" VARCHAR(36) NOT NULL, "actor_uuid" VARCHAR(36) NOT NULL,
"actor_name" VARCHAR(36) NOT NULL, "actor_name" VARCHAR(100) NOT NULL,
"type" CHAR(1) NOT NULL, "type" CHAR(1) NOT NULL,
"acted_uuid" VARCHAR(36) NOT NULL, "acted_uuid" VARCHAR(36) NOT NULL,
"acted_name" VARCHAR(36) NOT NULL, "acted_name" VARCHAR(36) NOT NULL,

View File

@ -43,7 +43,7 @@ CREATE TABLE `{prefix}actions` (
`id` INTEGER PRIMARY KEY NOT NULL, `id` INTEGER PRIMARY KEY NOT NULL,
`time` BIGINT NOT NULL, `time` BIGINT NOT NULL,
`actor_uuid` VARCHAR(36) NOT NULL, `actor_uuid` VARCHAR(36) NOT NULL,
`actor_name` VARCHAR(36) NOT NULL, `actor_name` VARCHAR(100) NOT NULL,
`type` CHAR(1) NOT NULL, `type` CHAR(1) NOT NULL,
`acted_uuid` VARCHAR(36) NOT NULL, `acted_uuid` VARCHAR(36) NOT NULL,
`acted_name` VARCHAR(36) NOT NULL, `acted_name` VARCHAR(36) NOT NULL,