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.
31 lines
1.1 KiB
SQL
31 lines
1.1 KiB
SQL
CREATE TABLE [users] (
|
|
[uid] int not null IDENTITY,
|
|
[name] nvarchar (100) not null,
|
|
[password] nvarchar (100) not null,
|
|
[salt] nvarchar (80) DEFAULT '' not null,
|
|
[group] int not null,
|
|
[active] bit DEFAULT 0 not null,
|
|
[is_super_admin] bit DEFAULT 0 not null,
|
|
[createdAt] datetime not null,
|
|
[lastActiveAt] datetime not null,
|
|
[session] nvarchar (200) DEFAULT '' not null,
|
|
[last_ip] nvarchar (200) DEFAULT '' not null,
|
|
[enable_embeds] int DEFAULT -1 not null,
|
|
[email] nvarchar (200) DEFAULT '' not null,
|
|
[avatar] nvarchar (100) DEFAULT '' not null,
|
|
[message] nvarchar (MAX) DEFAULT '' not null,
|
|
[url_prefix] nvarchar (20) DEFAULT '' not null,
|
|
[url_name] nvarchar (100) DEFAULT '' not null,
|
|
[level] smallint DEFAULT 0 not null,
|
|
[score] int DEFAULT 0 not null,
|
|
[posts] int DEFAULT 0 not null,
|
|
[bigposts] int DEFAULT 0 not null,
|
|
[megaposts] int DEFAULT 0 not null,
|
|
[topics] int DEFAULT 0 not null,
|
|
[liked] int DEFAULT 0 not null,
|
|
[oldestItemLikedCreatedAt] datetime not null,
|
|
[lastLiked] datetime not null,
|
|
[temp_group] int DEFAULT 0 not null,
|
|
primary key([uid]),
|
|
unique([name])
|
|
); |