Advertisement
Guest User

Untitled

a guest
Dec 29th, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.44 KB | None | 0 0
  1. -- phpMyAdmin SQL Dump
  2. -- version 4.6.4
  3. -- https://www.phpmyadmin.net/
  4. --
  5. -- Värd: 127.0.0.1
  6. -- Tid vid skapande: 29 dec 2017 kl 14:37
  7. -- Serverversion: 5.7.14
  8. -- PHP-version: 7.1.10
  9.  
  10. SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
  11. SET time_zone = "+00:00";
  12.  
  13. --
  14. -- Databas: `forum_ci`
  15. --
  16.  
  17. -- --------------------------------------------------------
  18.  
  19. --
  20. -- Tabellstruktur `categories`
  21. --
  22.  
  23. CREATE TABLE `categories` (
  24. `category_id` int(11) NOT NULL,
  25. `category_position` int(11) NOT NULL,
  26. `category_title` varchar(150) NOT NULL,
  27. `category_layout` varchar(50) NOT NULL DEFAULT 'modern'
  28. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  29.  
  30. --
  31. -- Dumpning av Data i tabell `categories`
  32. --
  33.  
  34. INSERT INTO `categories` (`category_id`, `category_position`, `category_title`, `category_layout`) VALUES
  35. (1, 1, 'Development', 'modern'),
  36. (2, 2, 'Community', 'classic');
  37.  
  38. -- --------------------------------------------------------
  39.  
  40. --
  41. -- Tabellstruktur `forums`
  42. --
  43.  
  44. CREATE TABLE `forums` (
  45. `forum_id` int(11) NOT NULL,
  46. `category_id` int(11) NOT NULL,
  47. `forum_position` int(11) NOT NULL,
  48. `forum_image` varchar(150) NOT NULL,
  49. `forum_title` varchar(150) NOT NULL,
  50. `forum_description` varchar(255) NOT NULL
  51. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  52.  
  53. --
  54. -- Dumpning av Data i tabell `forums`
  55. --
  56.  
  57. INSERT INTO `forums` (`forum_id`, `category_id`, `forum_position`, `forum_image`, `forum_title`, `forum_description`) VALUES
  58. (1, 1, 1, '', 'Regulations & Guidelines', ''),
  59. (2, 1, 2, '', 'Lore & Wiki', ''),
  60. (3, 1, 3, '', 'News', ''),
  61. (4, 1, 4, '', 'Questions', ''),
  62. (5, 1, 5, '', 'Bug', ''),
  63. (6, 1, 6, '', 'Player', ''),
  64. (7, 2, 1, '', 'Regulations', ''),
  65. (8, 2, 2, '', 'Lore', ''),
  66. (9, 2, 3, '', 'News', ''),
  67. (10, 2, 4, '', 'Questions', '');
  68.  
  69. -- --------------------------------------------------------
  70.  
  71. --
  72. -- Tabellstruktur `posts`
  73. --
  74.  
  75. CREATE TABLE `posts` (
  76. `post_id` int(11) NOT NULL,
  77. `post_topic_id` int(11) NOT NULL,
  78. `post_position` int(11) NOT NULL,
  79. `post_title` varchar(150) NOT NULL,
  80. `post_description` varchar(255) NOT NULL
  81. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  82.  
  83. -- --------------------------------------------------------
  84.  
  85. --
  86. -- Tabellstruktur `topics`
  87. --
  88.  
  89. CREATE TABLE `topics` (
  90. `topic_id` int(11) NOT NULL,
  91. `topic_forum_id` int(11) NOT NULL,
  92. `topic_position` int(11) NOT NULL,
  93. `topic_title` varchar(150) NOT NULL,
  94. `topic_description` varchar(255) NOT NULL
  95. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  96.  
  97. --
  98. -- Index för dumpade tabeller
  99. --
  100.  
  101. --
  102. -- Index för tabell `categories`
  103. --
  104. ALTER TABLE `categories`
  105. ADD PRIMARY KEY (`category_id`);
  106.  
  107. --
  108. -- Index för tabell `forums`
  109. --
  110. ALTER TABLE `forums`
  111. ADD PRIMARY KEY (`forum_id`);
  112.  
  113. --
  114. -- Index för tabell `posts`
  115. --
  116. ALTER TABLE `posts`
  117. ADD PRIMARY KEY (`post_id`);
  118.  
  119. --
  120. -- Index för tabell `topics`
  121. --
  122. ALTER TABLE `topics`
  123. ADD PRIMARY KEY (`topic_id`);
  124.  
  125. --
  126. -- AUTO_INCREMENT för dumpade tabeller
  127. --
  128.  
  129. --
  130. -- AUTO_INCREMENT för tabell `categories`
  131. --
  132. ALTER TABLE `categories`
  133. MODIFY `category_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
  134. --
  135. -- AUTO_INCREMENT för tabell `forums`
  136. --
  137. ALTER TABLE `forums`
  138. MODIFY `forum_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
  139. --
  140. -- AUTO_INCREMENT för tabell `posts`
  141. --
  142. ALTER TABLE `posts`
  143. MODIFY `post_id` int(11) NOT NULL AUTO_INCREMENT;
  144. --
  145. -- AUTO_INCREMENT för tabell `topics`
  146. --
  147. ALTER TABLE `topics`
  148. MODIFY `topic_id` int(11) NOT NULL AUTO_INCREMENT;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement