gosora/schema/pgsql/query_users_groups_promotions.sql
Azareal b6931fe16a Add registered time as a parameter for group promotions.
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.
2020-02-09 20:00:08 +10:00

11 lines
298 B
SQL

CREATE TABLE "users_groups_promotions" (
`pid` serial not null,
`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`)
);