Single-sign-on and self-serve account management. https://netsyms.biz/apps/accounthub
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2.1_3.0.sql 977B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * This Source Code Form is subject to the terms of the Mozilla Public
  3. * License, v. 2.0. If a copy of the MPL was not distributed with this
  4. * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  5. */
  6. DROP TABLE IF EXISTS `available_apps`;
  7. DROP TABLE IF EXISTS `apps`;
  8. CREATE TABLE IF NOT EXISTS `userloginkeys` (
  9. `id` INT(11) NOT NULL AUTO_INCREMENT,
  10. `key` VARCHAR(255) NOT NULL,
  11. `expires` DATETIME NULL DEFAULT NULL,
  12. `uid` INT(11) NULL DEFAULT NULL,
  13. PRIMARY KEY (`id`, `key`),
  14. UNIQUE INDEX `id_UNIQUE` (`id` ASC),
  15. UNIQUE INDEX `key_UNIQUE` (`key` ASC),
  16. INDEX `fk_userloginkeys_accounts1_idx` (`uid` ASC),
  17. CONSTRAINT `fk_userloginkeys_accounts1`
  18. FOREIGN KEY (`uid`)
  19. REFERENCES `accounts` (`uid`)
  20. ON DELETE NO ACTION
  21. ON UPDATE NO ACTION)
  22. ENGINE = InnoDB
  23. DEFAULT CHARACTER SET = utf8;
  24. ALTER TABLE `userloginkeys`
  25. ADD COLUMN `appname` VARCHAR(255) NOT NULL AFTER `uid`;
  26. ADD COLUMN `appicon` TINYTEXT NULL DEFAULT NULL AFTER `appname`;