Files
yhy-mager/backend/migrations/000008_package_objects.up.sql
xiewenjun 54c318c615
Some checks failed
Check / delivery-static (push) Has been cancelled
Check / api (push) Has been cancelled
Check / web (push) Has been cancelled
feat: implement license platform business flows and delivery tooling
Add admin and customer interfaces, orders, signed activation and leases, protected package delivery, keyring verification, migrations, security controls, tests and deployment documentation.

Co-Authored-By: Craft Agent <agents-noreply@craft.do>
2026-10-09 15:33:22 +08:00

6 lines
278 B
SQL

CREATE TABLE package_objects (
sha256 CHAR(64) CHARACTER SET ascii COLLATE ascii_bin NOT NULL PRIMARY KEY,
size_bytes BIGINT UNSIGNED NOT NULL
) ENGINE=InnoDB;
INSERT INTO package_objects(sha256,size_bytes) SELECT sha256,MAX(size_bytes) FROM product_releases GROUP BY sha256;