site.sql 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /* For managing multiple sites */
  2. create table status_network (
  3. site_id integer auto_increment primary key comment 'unique id',
  4. nickname varchar(64) unique key comment 'nickname',
  5. hostname varchar(255) unique key comment 'alternate hostname if any',
  6. pathname varchar(255) unique key comment 'alternate pathname if any',
  7. dbhost varchar(255) comment 'database host',
  8. dbuser varchar(255) comment 'database username',
  9. dbpass varchar(255) comment 'database password',
  10. dbname varchar(255) comment 'database name',
  11. sitename varchar(255) comment 'display name',
  12. theme varchar(255) comment 'theme name',
  13. logo varchar(255) comment 'site logo',
  14. tags text comment 'site meta-info tags (pipe-separated)',
  15. created datetime not null comment 'date this record was created',
  16. modified timestamp comment 'date this record was modified'
  17. ) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_general_ci;
  18. create table status_network_tag (
  19. site_id integer comment 'unique id',
  20. tag varchar(64) comment 'tag name',
  21. created datetime not null comment 'date the record was created',
  22. constraint primary key (site_id, tag),
  23. index status_network_tag_tag_idx (tag)
  24. ) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_general_ci;