The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
4.3 - Does Initial Install Use Foreign Keys???
#1
I cannot see any foreign keys in the MySQL Dump for the Userspice database. Am I missing something???
<pre>
Code:
--
-- Table structure for table <code>permissions</code>
--

CREATE TABLE <code>permissions</code> (
  <code>id</code> int(11) NOT NULL,
  <code>name</code> varchar(150) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
</pre>


Mike
  Reply
#2
UserSpice currently doesn't use foreign keys.
  Reply
#3
Are there drawbacks that I do not know concerning foreign keys???
  Reply
#4
There is no problem with using them but there are so few things that we do that have foreign key type connections that we didn't put the restrictions in the database. For instance, you could consider the profile ID or some of the permissions to be foreign keys. We just did not force the foreign key connection in the database.
  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)