openvk/install/sqls/00036-shortcode-aliases.sql
Alexander Minkin 5710d131fd
SQL: Reorder migration files
The issue was that numbers were duplicating, so I decided to fix them
2023-09-23 01:18:33 +03:00

11 lines
332 B
SQL

CREATE TABLE `aliases` (
`id` bigint UNSIGNED NOT NULL,
`owner_id` bigint NOT NULL,
`shortcode` varchar(36) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;
ALTER TABLE `aliases`
ADD PRIMARY KEY (`id`);
ALTER TABLE `aliases`
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT;