fdb6304e32
Split the relativeTime function into relativeTime and relativeTimeFromString. Refactored the installer. Made a lot of progress with PgSQL and MSSQL support, mostly MSSQL. Made a lot of progress on the automated testing suite. Added eqcss to the file extension list. ..depressed.. Fixed various bugs here and there. gen_mysql.go is now properly excluded when the pgsql or mssql build tag is passed. The BBCode plugin is now always initialised prior to it's test. We've begun transitioning towards deserializing database times directly into time.Times rather than doing it every time on the spot. Added more dev flags. The tests now make use of a test database rather than the production database.
28 lines
988 B
SQL
28 lines
988 B
SQL
DROP TABLE IF EXISTS [users];
|
|
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 '0.0.0.0.0' 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,
|
|
[temp_group] int DEFAULT 0 not null,
|
|
primary key([uid]),
|
|
unique([name])
|
|
); |