b6931fe16a
Run group promotions on group change. Run group promotions on registration. Load the CreatedAt field when users are loaded. Set the default for last_ip properly. Fix the default values in the group promotion form. Add initial group promotion tests. Add panel_group_promotion_registered_for phrase. Add the registeredFor column to the users_groups_promotions table. You will need to run the updater / patcher for this commit.
11 lines
353 B
SQL
11 lines
353 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,
|
|
`registeredFor` int DEFAULT 0 not null,
|
|
primary key(`pid`)
|
|
) CHARSET=utf8mb4 COLLATE utf8mb4_general_ci; |