Skip to content

Commit

Permalink
SQL: fix all support_names-related migrations
Browse files Browse the repository at this point in the history
This solves some problems in Docker instance
  • Loading branch information
WerySkok committed Sep 22, 2023
1 parent edf10c4 commit 8483a2d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
8 changes: 7 additions & 1 deletion install/sqls/00002-support-aliases.sql
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
CREATE TABLE `support_names` ( `agent` BIGINT UNSIGNED NOT NULL , `name` VARCHAR(512) NOT NULL , `icon` VARCHAR(1024) NULL DEFAULT NULL , `numerate` BOOLEAN NOT NULL DEFAULT FALSE , PRIMARY KEY (`agent`)) ENGINE = InnoDB;
CREATE TABLE `support_names` (
`agent` BIGINT UNSIGNED NOT NULL,
`name` VARCHAR(512) NOT NULL,
`icon` VARCHAR(1024) NULL DEFAULT NULL,
`numerate` BOOLEAN NOT NULL DEFAULT FALSE,
PRIMARY KEY (`agent`)
) ENGINE = InnoDB;
10 changes: 2 additions & 8 deletions install/sqls/00032-agent-card.sql
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@

CREATE TABLE `support_names` (
`id` bigint(20) UNSIGNED NOT NULL,
`agent` bigint(20) UNSIGNED NOT NULL,
`name` varchar(512) COLLATE utf8mb4_unicode_ci NOT NULL,
`icon` varchar(1024) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`numerate` tinyint(1) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
ALTER TABLE `support_names` ADD `id` bigint(20) UNSIGNED NOT NULL FIRST;

ALTER TABLE `support_names`
ADD PRIMARY KEY (`id`);
ADD UNIQUE KEY `id` (`id`);

ALTER TABLE `support_names`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
Expand Down
2 changes: 0 additions & 2 deletions install/sqls/00037-agent-card-profilefix.sql

This file was deleted.

0 comments on commit 8483a2d

Please sign in to comment.