gosora/schema/mysql/query_users_groups_promotions.sql
Azareal 2e28ae39f3 Add posts as a criteria for group promotions.
Load the posts column when loading users.
Make DefaultUserStore.Reload a wrapper around DefaultUserStore.BypassGet.
Use the OO style query builder more in common/user.go
GroupPromotions is now bound to an interface rather than the concrete type.
Fix some issues in the GroupPromotionStore interface.
Improve error handling for table creation and reduce boilerplate.
Shorten some more things.

Add panel_group_promotions_posts phrase.

You will need to run the patcher / updater for this commit.
2019-10-07 08:20:37 +10:00

10 lines
312 B
SQL

CREATE TABLE `users_groups_promotions` (
`pid` int not null AUTO_INCREMENT,
`from_gid` int not null,
`to_gid` int not null,
`two_way` boolean DEFAULT 0 not null,
`level` int not null,
`posts` int DEFAULT 0 not null,
`minTime` int not null,
primary key(`pid`)
) CHARSET=utf8mb4 COLLATE utf8mb4_general_ci;