mirror of
https://github.com/YGGverse/rssto.git
synced 2026-03-31 17:15:29 +00:00
implement persist_images_selector, minimize codebase by using bail, change image table structure to use sha256 hash as the unique image identity
This commit is contained in:
parent
bc61b5c09c
commit
ec0cca64f3
7 changed files with 97 additions and 90 deletions
|
|
@ -1,5 +1,5 @@
|
|||
-- MySQL Script generated by MySQL Workbench
|
||||
-- пт, 09-січ-2026 17:57:03 +0200
|
||||
-- сб, 10-січ-2026 14:27:50 +0200
|
||||
-- Model: New Model Version: 1.0
|
||||
-- MySQL Workbench Forward Engineering
|
||||
|
||||
|
|
@ -92,10 +92,12 @@ ENGINE = InnoDB;
|
|||
-- -----------------------------------------------------
|
||||
CREATE TABLE IF NOT EXISTS `rssto`.`image` (
|
||||
`image_id` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||
`source` VARCHAR(2048) NOT NULL,
|
||||
`sha256` CHAR(64) NOT NULL,
|
||||
`src` VARCHAR(2048) NULL,
|
||||
`url` VARCHAR(2048) NULL,
|
||||
`data` MEDIUMBLOB NOT NULL,
|
||||
PRIMARY KEY (`image_id`),
|
||||
UNIQUE INDEX `source_UNIQUE` (`source` ASC) VISIBLE)
|
||||
UNIQUE INDEX `hash_UNIQUE` (`sha256` ASC) VISIBLE)
|
||||
ENGINE = InnoDB;
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue