XAssetStore.migrations 692 B

123456789101112131415161718192021222324252627
  1. # -----------------
  2. :VERSION 1
  3. BEGIN;
  4. CREATE TABLE `xassetsmeta` (
  5. `id` char(36) NOT NULL,
  6. `hash` binary(32) NOT NULL,
  7. `name` varchar(64) NOT NULL,
  8. `description` varchar(64) NOT NULL,
  9. `asset_type` tinyint(4) NOT NULL,
  10. `local` tinyint(1) NOT NULL,
  11. `temporary` tinyint(1) NOT NULL,
  12. `create_time` int(11) NOT NULL,
  13. `access_time` int(11) NOT NULL,
  14. `asset_flags` int(11) NOT NULL,
  15. `creator_id` varchar(128) NOT NULL,
  16. PRIMARY KEY (`id`)
  17. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Version 1';
  18. CREATE TABLE `xassetsdata` (
  19. `hash` binary(32) NOT NULL,
  20. `data` longblob NOT NULL,
  21. PRIMARY KEY (`hash`)
  22. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Version 1';
  23. COMMIT;