X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=db%2Fsite.sql;h=9e33fc007ccdcae8f9742e8917976a625b15785e;hb=b6be1a36591cef4a31b79f73026066996eac4fd4;hp=f87995b94362c0f7ecb596475f48e0a0649329ea;hpb=50b12e5820e88682c27a75974143dc61159b327c;p=quix0rs-gnu-social.git diff --git a/db/site.sql b/db/site.sql index f87995b943..9e33fc007c 100644 --- a/db/site.sql +++ b/db/site.sql @@ -18,16 +18,17 @@ create table status_network ( tags text comment 'site meta-info tags (pipe-separated)', - created datetime not null comment 'date this record was created', - modified timestamp comment 'date this record was modified' + created datetime not null comment 'date this record was created' default now(), + modified timestamp comment 'date this record was modified' default now() -) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_general_ci; +) ENGINE=InnoDB CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci; create table status_network_tag ( site_id integer comment 'unique id', tag varchar(64) comment 'tag name', created datetime not null comment 'date the record was created', - constraint primary key (site_id, tag) -) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_general_ci; + constraint primary key (site_id, tag), + index status_network_tag_tag_idx (tag) +) ENGINE=InnoDB CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;