c2ff50c917
an user can now be disabled or expired. If you are using an SQL database as dataprovider please remember to execute the sql update script inside "sql" folder. Fixes #57
17 lines
No EOL
525 B
PL/PgSQL
17 lines
No EOL
525 B
PL/PgSQL
BEGIN;
|
|
--
|
|
-- Add field expiration_date to user
|
|
--
|
|
ALTER TABLE `users` ADD COLUMN `expiration_date` bigint DEFAULT 0 NOT NULL;
|
|
ALTER TABLE `users` ALTER COLUMN `expiration_date` DROP DEFAULT;
|
|
--
|
|
-- Add field last_login to user
|
|
--
|
|
ALTER TABLE `users` ADD COLUMN `last_login` bigint DEFAULT 0 NOT NULL;
|
|
ALTER TABLE `users` ALTER COLUMN `last_login` DROP DEFAULT;
|
|
--
|
|
-- Add field status to user
|
|
--
|
|
ALTER TABLE `users` ADD COLUMN `status` integer DEFAULT 1 NOT NULL;
|
|
ALTER TABLE `users` ALTER COLUMN `status` DROP DEFAULT;
|
|
COMMIT; |