fix(sqls): add NOT NULL to id in 00049-ignored-sources.sql

This commit is contained in:
Alexander Minkin 2024-11-03 17:52:09 +03:00
parent f4c0805a6a
commit 507bbfaba5
Signed by untrusted user: WerySkok
GPG key ID: 88E9A2F3AFE44C30

View file

@ -1,2 +1,2 @@
CREATE TABLE `ignored_sources` (`id` BIGINT(20) UNSIGNED NULL AUTO_INCREMENT , `owner` BIGINT(20) UNSIGNED NOT NULL , `source` BIGINT(20) NOT NULL , PRIMARY KEY (`id`), INDEX (`owner`)) ENGINE = InnoDB;
CREATE TABLE `ignored_sources` (`id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT , `owner` BIGINT(20) UNSIGNED NOT NULL , `source` BIGINT(20) NOT NULL , PRIMARY KEY (`id`), INDEX (`owner`)) ENGINE = InnoDB;
ALTER TABLE `ignored_sources` ADD INDEX `owner_source` (`owner`, `source`);