Advertisement
axyd

moviedb

May 16th, 2019
315
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 16.85 KB | None | 0 0
  1. -- phpMyAdmin SQL Dump
  2. -- version 4.8.5
  3. -- https://www.phpmyadmin.net/
  4. --
  5. -- Host: localhost
  6. -- Generation Time: May 16, 2019 at 05:17 AM
  7. -- Server version: 8.0.15
  8. -- PHP Version: 7.2.7
  9.  
  10. SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
  11. SET AUTOCOMMIT = 0;
  12. START TRANSACTION;
  13. SET time_zone = "+00:00";
  14.  
  15.  
  16. /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  17. /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  18. /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
  19. /*!40101 SET NAMES utf8mb4 */;
  20.  
  21. --
  22. -- Database: `moviedb`
  23. --
  24.  
  25. -- --------------------------------------------------------
  26.  
  27. --
  28. -- Table structure for table `actor`
  29. --
  30.  
  31. CREATE TABLE `actor` (
  32.   `id` int(11) NOT NULL,
  33.   `fName` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci DEFAULT NULL,
  34.   `lName` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci DEFAULT NULL,
  35.   `dob` date DEFAULT NULL,
  36.   `imdb_id` varchar(255) DEFAULT NULL
  37. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  38.  
  39. --
  40. -- Dumping data for table `actor`
  41. --
  42.  
  43. INSERT INTO `actor` (`id`, `fName`, `lName`, `dob`, `imdb_id`) VALUES
  44. (1, 'Jonny Lee', 'Miller', '1972-11-15', 'nm0001538'),
  45. (2, 'Fisher', 'Stevens', '1963-11-27', 'nm0001770'),
  46. (3, 'Joe', 'Pesci', '1943-02-09', 'nm0000582'),
  47. (4, 'Crispin', 'Glover', '1964-04-20', 'nm0000417'),
  48. (5, 'Christopher', 'Lloyd', '1938-10-22', 'nm0000502');
  49.  
  50. -- --------------------------------------------------------
  51.  
  52. --
  53. -- Table structure for table `actor_starredin_movie`
  54. --
  55.  
  56. CREATE TABLE `actor_starredin_movie` (
  57.   `nr` int(11) NOT NULL,
  58.   `movie.id` int(11) NOT NULL,
  59.   `actor.id` int(11) NOT NULL
  60. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  61.  
  62. -- --------------------------------------------------------
  63.  
  64. --
  65. -- Table structure for table `certification`
  66. --
  67.  
  68. CREATE TABLE `certification` (
  69.   `id` int(11) NOT NULL,
  70.   `country` varchar(255) NOT NULL,
  71.   `rating` varchar(255) NOT NULL,
  72.   `reason` text NOT NULL,
  73.   `age_limit` int(11) NOT NULL
  74. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  75.  
  76. -- --------------------------------------------------------
  77.  
  78. --
  79. -- Table structure for table `country`
  80. --
  81.  
  82. CREATE TABLE `country` (
  83.   `id` int(11) NOT NULL,
  84.   `name` varchar(255) DEFAULT NULL
  85. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  86.  
  87. -- --------------------------------------------------------
  88.  
  89. --
  90. -- Table structure for table `country_has_releasedate`
  91. --
  92.  
  93. CREATE TABLE `country_has_releasedate` (
  94.   `nr` int(11) NOT NULL,
  95.   `country.id` int(11) NOT NULL,
  96.   `releasedate.id` int(11) NOT NULL
  97. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  98.  
  99. -- --------------------------------------------------------
  100.  
  101. --
  102. -- Table structure for table `director`
  103. --
  104.  
  105. CREATE TABLE `director` (
  106.   `id` int(11) NOT NULL,
  107.   `fName` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
  108.   `lName` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
  109.   `dob` date NOT NULL,
  110.   `imdb_id` varchar(255) NOT NULL
  111. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  112.  
  113. -- --------------------------------------------------------
  114.  
  115. --
  116. -- Table structure for table `director_directed_movie`
  117. --
  118.  
  119. CREATE TABLE `director_directed_movie` (
  120.   `nr` int(11) NOT NULL,
  121.   `director.id` int(11) NOT NULL,
  122.   `movie.id` int(11) NOT NULL
  123. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  124.  
  125. -- --------------------------------------------------------
  126.  
  127. --
  128. -- Table structure for table `genre`
  129. --
  130.  
  131. CREATE TABLE `genre` (
  132.   `id` int(11) NOT NULL,
  133.   `name` varchar(255) NOT NULL
  134. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  135.  
  136. -- --------------------------------------------------------
  137.  
  138. --
  139. -- Table structure for table `language`
  140. --
  141.  
  142. CREATE TABLE `language` (
  143.   `id` int(11) NOT NULL,
  144.   `name` varchar(255) DEFAULT NULL
  145. ) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT;
  146.  
  147. -- --------------------------------------------------------
  148.  
  149. --
  150. -- Table structure for table `language_spokenin_country`
  151. --
  152.  
  153. CREATE TABLE `language_spokenin_country` (
  154.   `nr` int(11) NOT NULL,
  155.   `language.id` int(11) NOT NULL,
  156.   `country.id` int(11) NOT NULL
  157. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  158.  
  159. -- --------------------------------------------------------
  160.  
  161. --
  162. -- Table structure for table `media`
  163. --
  164.  
  165. CREATE TABLE `media` (
  166.   `id` int(11) NOT NULL,
  167.   `title` varchar(255) NOT NULL,
  168.   `host` varchar(255) NOT NULL,
  169.   `link` varchar(2083) NOT NULL,
  170.   `age_restriction` int(11) NOT NULL,
  171.   `media_type` varchar(255) NOT NULL
  172. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  173.  
  174. -- --------------------------------------------------------
  175.  
  176. --
  177. -- Table structure for table `media_promotes_movies`
  178. --
  179.  
  180. CREATE TABLE `media_promotes_movies` (
  181.   `nr` int(11) NOT NULL,
  182.   `media.id` int(11) NOT NULL,
  183.   `movie.id` int(11) NOT NULL
  184. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  185.  
  186. -- --------------------------------------------------------
  187.  
  188. --
  189. -- Table structure for table `movie`
  190. --
  191.  
  192. CREATE TABLE `movie` (
  193.   `id` int(11) NOT NULL,
  194.   `name` varchar(255) NOT NULL,
  195.   `imdb_year` year(4) NOT NULL,
  196.   `imdb_id` int(11) NOT NULL,
  197.   `imdb_rating` float NOT NULL,
  198.   `runtime` int(11) DEFAULT NULL
  199. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  200.  
  201. -- --------------------------------------------------------
  202.  
  203. --
  204. -- Table structure for table `movie_filmedin_country`
  205. --
  206.  
  207. CREATE TABLE `movie_filmedin_country` (
  208.   `nr` int(11) NOT NULL,
  209.   `movie.id` int(11) NOT NULL,
  210.   `country.id` int(11) NOT NULL
  211. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  212.  
  213. -- --------------------------------------------------------
  214.  
  215. --
  216. -- Table structure for table `movie_has_certification`
  217. --
  218.  
  219. CREATE TABLE `movie_has_certification` (
  220.   `nr` int(11) NOT NULL,
  221.   `movie.id` int(11) NOT NULL,
  222.   `certification.id` int(11) NOT NULL
  223. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  224.  
  225. -- --------------------------------------------------------
  226.  
  227. --
  228. -- Table structure for table `movie_has_genre`
  229. --
  230.  
  231. CREATE TABLE `movie_has_genre` (
  232.   `nr` int(11) NOT NULL,
  233.   `movie.id` int(11) NOT NULL,
  234.   `genre.id` int(11) NOT NULL
  235. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  236.  
  237. -- --------------------------------------------------------
  238.  
  239. --
  240. -- Table structure for table `movie_has_rating`
  241. --
  242.  
  243. CREATE TABLE `movie_has_rating` (
  244.   `nr` int(11) NOT NULL,
  245.   `movie.id` int(11) NOT NULL,
  246.   `rating.id` int(11) NOT NULL
  247. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  248.  
  249. -- --------------------------------------------------------
  250.  
  251. --
  252. -- Table structure for table `otherstaff`
  253. --
  254.  
  255. CREATE TABLE `otherstaff` (
  256.   `id` int(11) NOT NULL,
  257.   `fName` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
  258.   `lName` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
  259.   `dob` date NOT NULL,
  260.   `imdb_id` varchar(255) NOT NULL,
  261.   `role` varchar(255) NOT NULL
  262. ) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT;
  263.  
  264. -- --------------------------------------------------------
  265.  
  266. --
  267. -- Table structure for table `otherstaff_workedin_movie`
  268. --
  269.  
  270. CREATE TABLE `otherstaff_workedin_movie` (
  271.   `nr` int(11) NOT NULL,
  272.   `otherstaff.id` int(11) NOT NULL,
  273.   `movie.id` int(11) NOT NULL
  274. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  275.  
  276. -- --------------------------------------------------------
  277.  
  278. --
  279. -- Table structure for table `prodcomp`
  280. --
  281.  
  282. CREATE TABLE `prodcomp` (
  283.   `id` int(11) NOT NULL,
  284.   `name` int(11) NOT NULL,
  285.   `imdb_id` int(11) NOT NULL,
  286.   `street_address` int(11) NOT NULL,
  287.   `city` int(11) NOT NULL,
  288.   `postal_code` int(11) NOT NULL,
  289.   `country` int(11) NOT NULL
  290. ) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT;
  291.  
  292. -- --------------------------------------------------------
  293.  
  294. --
  295. -- Table structure for table `prodcomp_produced_movie`
  296. --
  297.  
  298. CREATE TABLE `prodcomp_produced_movie` (
  299.   `nr` int(11) NOT NULL,
  300.   `prodcomp.id` int(11) NOT NULL,
  301.   `movie.id` int(11) NOT NULL
  302. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  303.  
  304. -- --------------------------------------------------------
  305.  
  306. --
  307. -- Table structure for table `rating`
  308. --
  309.  
  310. CREATE TABLE `rating` (
  311.   `id` int(11) NOT NULL,
  312.   `source` varchar(255) NOT NULL,
  313.   `grade` float NOT NULL,
  314.   `scale` float NOT NULL
  315. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  316.  
  317. -- --------------------------------------------------------
  318.  
  319. --
  320. -- Table structure for table `releasedate`
  321. --
  322.  
  323. CREATE TABLE `releasedate` (
  324.   `id` int(11) NOT NULL,
  325.   `theater` date NOT NULL,
  326.   `dvd` date NOT NULL,
  327.   `bluray` date NOT NULL,
  328.   `streaming` date NOT NULL
  329. ) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT;
  330.  
  331. -- --------------------------------------------------------
  332.  
  333. --
  334. -- Table structure for table `showtime`
  335. --
  336.  
  337. CREATE TABLE `showtime` (
  338.   `id` int(11) NOT NULL,
  339.   `date` date NOT NULL,
  340.   `time_slot` time NOT NULL,
  341.   `3D` tinyint(1) NOT NULL,
  342.   `IMAX` tinyint(1) NOT NULL
  343. ) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT;
  344.  
  345. -- --------------------------------------------------------
  346.  
  347. --
  348. -- Table structure for table `theater`
  349. --
  350.  
  351. CREATE TABLE `theater` (
  352.   `id` int(11) NOT NULL,
  353.   `name` varchar(255) NOT NULL,
  354.   `address` varchar(255) NOT NULL,
  355.   `city` varchar(255) NOT NULL,
  356.   `state` varchar(255) NOT NULL,
  357.   `postal_code` int(11) NOT NULL,
  358.   `country` varchar(255) NOT NULL
  359. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  360.  
  361. -- --------------------------------------------------------
  362.  
  363. --
  364. -- Table structure for table `theater_has_showtime`
  365. --
  366.  
  367. CREATE TABLE `theater_has_showtime` (
  368.   `nr` int(11) NOT NULL,
  369.   `theater.id` int(11) NOT NULL,
  370.   `showtime.id` int(11) NOT NULL
  371. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  372.  
  373. -- --------------------------------------------------------
  374.  
  375. --
  376. -- Table structure for table `writer`
  377. --
  378.  
  379. CREATE TABLE `writer` (
  380.   `id` int(11) NOT NULL,
  381.   `fName` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
  382.   `lName` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
  383.   `dob` date NOT NULL,
  384.   `imdb_id` varchar(255) NOT NULL
  385. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  386.  
  387. -- --------------------------------------------------------
  388.  
  389. --
  390. -- Table structure for table `writer_wrote_movie`
  391. --
  392.  
  393. CREATE TABLE `writer_wrote_movie` (
  394.   `nr` int(11) NOT NULL,
  395.   `writer.id` int(11) NOT NULL,
  396.   `movie.id` int(11) NOT NULL
  397. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  398.  
  399. --
  400. -- Indexes for dumped tables
  401. --
  402.  
  403. --
  404. -- Indexes for table `actor`
  405. --
  406. ALTER TABLE `actor`
  407.   ADD PRIMARY KEY (`id`);
  408.  
  409. --
  410. -- Indexes for table `actor_starredin_movie`
  411. --
  412. ALTER TABLE `actor_starredin_movie`
  413.   ADD PRIMARY KEY (`nr`);
  414.  
  415. --
  416. -- Indexes for table `certification`
  417. --
  418. ALTER TABLE `certification`
  419.   ADD PRIMARY KEY (`id`);
  420.  
  421. --
  422. -- Indexes for table `country`
  423. --
  424. ALTER TABLE `country`
  425.   ADD PRIMARY KEY (`id`);
  426.  
  427. --
  428. -- Indexes for table `country_has_releasedate`
  429. --
  430. ALTER TABLE `country_has_releasedate`
  431.   ADD PRIMARY KEY (`nr`);
  432.  
  433. --
  434. -- Indexes for table `director`
  435. --
  436. ALTER TABLE `director`
  437.   ADD PRIMARY KEY (`id`);
  438.  
  439. --
  440. -- Indexes for table `director_directed_movie`
  441. --
  442. ALTER TABLE `director_directed_movie`
  443.   ADD PRIMARY KEY (`nr`);
  444.  
  445. --
  446. -- Indexes for table `genre`
  447. --
  448. ALTER TABLE `genre`
  449.   ADD PRIMARY KEY (`id`);
  450.  
  451. --
  452. -- Indexes for table `language`
  453. --
  454. ALTER TABLE `language`
  455.   ADD PRIMARY KEY (`id`);
  456.  
  457. --
  458. -- Indexes for table `language_spokenin_country`
  459. --
  460. ALTER TABLE `language_spokenin_country`
  461.   ADD PRIMARY KEY (`nr`);
  462.  
  463. --
  464. -- Indexes for table `media`
  465. --
  466. ALTER TABLE `media`
  467.   ADD PRIMARY KEY (`id`);
  468.  
  469. --
  470. -- Indexes for table `media_promotes_movies`
  471. --
  472. ALTER TABLE `media_promotes_movies`
  473.   ADD PRIMARY KEY (`nr`);
  474.  
  475. --
  476. -- Indexes for table `movie`
  477. --
  478. ALTER TABLE `movie`
  479.   ADD PRIMARY KEY (`id`) USING BTREE;
  480.  
  481. --
  482. -- Indexes for table `movie_filmedin_country`
  483. --
  484. ALTER TABLE `movie_filmedin_country`
  485.   ADD PRIMARY KEY (`nr`);
  486.  
  487. --
  488. -- Indexes for table `movie_has_certification`
  489. --
  490. ALTER TABLE `movie_has_certification`
  491.   ADD PRIMARY KEY (`nr`);
  492.  
  493. --
  494. -- Indexes for table `movie_has_genre`
  495. --
  496. ALTER TABLE `movie_has_genre`
  497.   ADD PRIMARY KEY (`nr`);
  498.  
  499. --
  500. -- Indexes for table `movie_has_rating`
  501. --
  502. ALTER TABLE `movie_has_rating`
  503.   ADD PRIMARY KEY (`nr`);
  504.  
  505. --
  506. -- Indexes for table `otherstaff`
  507. --
  508. ALTER TABLE `otherstaff`
  509.   ADD PRIMARY KEY (`id`);
  510.  
  511. --
  512. -- Indexes for table `otherstaff_workedin_movie`
  513. --
  514. ALTER TABLE `otherstaff_workedin_movie`
  515.   ADD PRIMARY KEY (`nr`);
  516.  
  517. --
  518. -- Indexes for table `prodcomp`
  519. --
  520. ALTER TABLE `prodcomp`
  521.   ADD PRIMARY KEY (`id`);
  522.  
  523. --
  524. -- Indexes for table `prodcomp_produced_movie`
  525. --
  526. ALTER TABLE `prodcomp_produced_movie`
  527.   ADD PRIMARY KEY (`nr`);
  528.  
  529. --
  530. -- Indexes for table `rating`
  531. --
  532. ALTER TABLE `rating`
  533.   ADD PRIMARY KEY (`id`);
  534.  
  535. --
  536. -- Indexes for table `releasedate`
  537. --
  538. ALTER TABLE `releasedate`
  539.   ADD PRIMARY KEY (`id`);
  540.  
  541. --
  542. -- Indexes for table `showtime`
  543. --
  544. ALTER TABLE `showtime`
  545.   ADD PRIMARY KEY (`id`);
  546.  
  547. --
  548. -- Indexes for table `theater`
  549. --
  550. ALTER TABLE `theater`
  551.   ADD PRIMARY KEY (`id`);
  552.  
  553. --
  554. -- Indexes for table `theater_has_showtime`
  555. --
  556. ALTER TABLE `theater_has_showtime`
  557.   ADD PRIMARY KEY (`nr`);
  558.  
  559. --
  560. -- Indexes for table `writer`
  561. --
  562. ALTER TABLE `writer`
  563.   ADD PRIMARY KEY (`id`);
  564.  
  565. --
  566. -- Indexes for table `writer_wrote_movie`
  567. --
  568. ALTER TABLE `writer_wrote_movie`
  569.   ADD PRIMARY KEY (`nr`);
  570.  
  571. --
  572. -- AUTO_INCREMENT for dumped tables
  573. --
  574.  
  575. --
  576. -- AUTO_INCREMENT for table `actor`
  577. --
  578. ALTER TABLE `actor`
  579.   MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
  580.  
  581. --
  582. -- AUTO_INCREMENT for table `actor_starredin_movie`
  583. --
  584. ALTER TABLE `actor_starredin_movie`
  585.   MODIFY `nr` int(11) NOT NULL AUTO_INCREMENT;
  586.  
  587. --
  588. -- AUTO_INCREMENT for table `certification`
  589. --
  590. ALTER TABLE `certification`
  591.   MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
  592.  
  593. --
  594. -- AUTO_INCREMENT for table `country`
  595. --
  596. ALTER TABLE `country`
  597.   MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
  598.  
  599. --
  600. -- AUTO_INCREMENT for table `country_has_releasedate`
  601. --
  602. ALTER TABLE `country_has_releasedate`
  603.   MODIFY `nr` int(11) NOT NULL AUTO_INCREMENT;
  604.  
  605. --
  606. -- AUTO_INCREMENT for table `director`
  607. --
  608. ALTER TABLE `director`
  609.   MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
  610.  
  611. --
  612. -- AUTO_INCREMENT for table `director_directed_movie`
  613. --
  614. ALTER TABLE `director_directed_movie`
  615.   MODIFY `nr` int(11) NOT NULL AUTO_INCREMENT;
  616.  
  617. --
  618. -- AUTO_INCREMENT for table `genre`
  619. --
  620. ALTER TABLE `genre`
  621.   MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
  622.  
  623. --
  624. -- AUTO_INCREMENT for table `language`
  625. --
  626. ALTER TABLE `language`
  627.   MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
  628.  
  629. --
  630. -- AUTO_INCREMENT for table `language_spokenin_country`
  631. --
  632. ALTER TABLE `language_spokenin_country`
  633.   MODIFY `nr` int(11) NOT NULL AUTO_INCREMENT;
  634.  
  635. --
  636. -- AUTO_INCREMENT for table `media`
  637. --
  638. ALTER TABLE `media`
  639.   MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
  640.  
  641. --
  642. -- AUTO_INCREMENT for table `media_promotes_movies`
  643. --
  644. ALTER TABLE `media_promotes_movies`
  645.   MODIFY `nr` int(11) NOT NULL AUTO_INCREMENT;
  646.  
  647. --
  648. -- AUTO_INCREMENT for table `movie_filmedin_country`
  649. --
  650. ALTER TABLE `movie_filmedin_country`
  651.   MODIFY `nr` int(11) NOT NULL AUTO_INCREMENT;
  652.  
  653. --
  654. -- AUTO_INCREMENT for table `movie_has_certification`
  655. --
  656. ALTER TABLE `movie_has_certification`
  657.   MODIFY `nr` int(11) NOT NULL AUTO_INCREMENT;
  658.  
  659. --
  660. -- AUTO_INCREMENT for table `movie_has_genre`
  661. --
  662. ALTER TABLE `movie_has_genre`
  663.   MODIFY `nr` int(11) NOT NULL AUTO_INCREMENT;
  664.  
  665. --
  666. -- AUTO_INCREMENT for table `movie_has_rating`
  667. --
  668. ALTER TABLE `movie_has_rating`
  669.   MODIFY `nr` int(11) NOT NULL AUTO_INCREMENT;
  670.  
  671. --
  672. -- AUTO_INCREMENT for table `otherstaff`
  673. --
  674. ALTER TABLE `otherstaff`
  675.   MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
  676.  
  677. --
  678. -- AUTO_INCREMENT for table `otherstaff_workedin_movie`
  679. --
  680. ALTER TABLE `otherstaff_workedin_movie`
  681.   MODIFY `nr` int(11) NOT NULL AUTO_INCREMENT;
  682.  
  683. --
  684. -- AUTO_INCREMENT for table `prodcomp`
  685. --
  686. ALTER TABLE `prodcomp`
  687.   MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
  688.  
  689. --
  690. -- AUTO_INCREMENT for table `prodcomp_produced_movie`
  691. --
  692. ALTER TABLE `prodcomp_produced_movie`
  693.   MODIFY `nr` int(11) NOT NULL AUTO_INCREMENT;
  694.  
  695. --
  696. -- AUTO_INCREMENT for table `rating`
  697. --
  698. ALTER TABLE `rating`
  699.   MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
  700.  
  701. --
  702. -- AUTO_INCREMENT for table `releasedate`
  703. --
  704. ALTER TABLE `releasedate`
  705.   MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
  706.  
  707. --
  708. -- AUTO_INCREMENT for table `showtime`
  709. --
  710. ALTER TABLE `showtime`
  711.   MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
  712.  
  713. --
  714. -- AUTO_INCREMENT for table `theater`
  715. --
  716. ALTER TABLE `theater`
  717.   MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
  718.  
  719. --
  720. -- AUTO_INCREMENT for table `theater_has_showtime`
  721. --
  722. ALTER TABLE `theater_has_showtime`
  723.   MODIFY `nr` int(11) NOT NULL AUTO_INCREMENT;
  724.  
  725. --
  726. -- AUTO_INCREMENT for table `writer`
  727. --
  728. ALTER TABLE `writer`
  729.   MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
  730.  
  731. --
  732. -- AUTO_INCREMENT for table `writer_wrote_movie`
  733. --
  734. ALTER TABLE `writer_wrote_movie`
  735.   MODIFY `nr` int(11) NOT NULL AUTO_INCREMENT;
  736. COMMIT;
  737.  
  738. /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
  739. /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
  740. /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement