mirror of
https://github.com/openvk/openvk
synced 2024-11-11 01:19:53 +03:00
Install SQLs: Fix MariaDB compatibility
This commit is contained in:
parent
5b3a1f50e9
commit
283d8c1c2d
2 changed files with 5 additions and 7 deletions
|
@ -1,14 +1,13 @@
|
||||||
CREATE TABLE `links_banned` (
|
CREATE TABLE `links_banned` (
|
||||||
`id` bigint UNSIGNED NOT NULL,
|
`id` bigint UNSIGNED NOT NULL,
|
||||||
`domain` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
|
`domain` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_nopad_ci NOT NULL,
|
||||||
`regexp_rule` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
|
`regexp_rule` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_nopad_ci NOT NULL,
|
||||||
`reason` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci,
|
`reason` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_nopad_ci,
|
||||||
`initiator` bigint UNSIGNED NOT NULL
|
`initiator` bigint UNSIGNED NOT NULL
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_nopad_ci;
|
||||||
|
|
||||||
ALTER TABLE `links_banned`
|
ALTER TABLE `links_banned`
|
||||||
ADD PRIMARY KEY (`id`);
|
ADD PRIMARY KEY (`id`);
|
||||||
|
|
||||||
ALTER TABLE `links_banned`
|
ALTER TABLE `links_banned`
|
||||||
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
|
||||||
COMMIT;
|
|
|
@ -2,11 +2,10 @@ CREATE TABLE `aliases` (
|
||||||
`id` bigint UNSIGNED NOT NULL,
|
`id` bigint UNSIGNED NOT NULL,
|
||||||
`owner_id` bigint NOT NULL,
|
`owner_id` bigint NOT NULL,
|
||||||
`shortcode` varchar(36) NOT NULL
|
`shortcode` varchar(36) NOT NULL
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_nopad_ci;
|
||||||
|
|
||||||
ALTER TABLE `aliases`
|
ALTER TABLE `aliases`
|
||||||
ADD PRIMARY KEY (`id`);
|
ADD PRIMARY KEY (`id`);
|
||||||
|
|
||||||
ALTER TABLE `aliases`
|
ALTER TABLE `aliases`
|
||||||
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
|
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;
|
||||||
COMMIT;
|
|
||||||
|
|
Loading…
Reference in a new issue