Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6d7d3e6

Browse files
sql file
1 parent a45e65c commit 6d7d3e6

File tree

1 file changed

+103
-0
lines changed

1 file changed

+103
-0
lines changed

‎test.sql

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
-- phpMyAdmin SQL Dump
2+
-- version 4.6.6deb5
3+
-- https://www.phpmyadmin.net/
4+
--
5+
-- Host: localhost:3306
6+
-- Generation Time: Nov 12, 2018 at 10:05 AM
7+
-- Server version: 5.7.24-0ubuntu0.18.04.1
8+
-- PHP Version: 7.2.10-0ubuntu0.18.04.1
9+
10+
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
11+
SET time_zone = "+00:00";
12+
13+
14+
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
15+
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
16+
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
17+
/*!40101 SET NAMES utf8mb4 */;
18+
19+
--
20+
-- Database: `test`
21+
--
22+
23+
-- --------------------------------------------------------
24+
25+
--
26+
-- Table structure for table `news`
27+
--
28+
29+
CREATE TABLE `news` (
30+
`id` int(11) NOT NULL,
31+
`title` varchar(128) NOT NULL,
32+
`slug` varchar(128) NOT NULL,
33+
`text` text NOT NULL,
34+
`user_id` int(11) NOT NULL DEFAULT '0'
35+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
36+
37+
--
38+
-- Dumping data for table `news`
39+
--
40+
41+
INSERT INTO `news` (`id`, `title`, `slug`, `text`, `user_id`) VALUES
42+
(2, 'What is Lorem Ipsum?', 'what-is-lorem-ipsum', 'Lorem Ipsum is simply dummy text.x', 1),
43+
(3, 'My test', 'my-test', 'hello there', 2),
44+
(4, 'What is Lorem Ipsum?', 'what-is-lorem-ipsum', 'adsadsd', 1),
45+
(5, 'What is Lorem Ipsum?1', 'what-is-lorem-ipsum1', 'What is Lorem Ipsum?1', 1);
46+
47+
-- --------------------------------------------------------
48+
49+
--
50+
-- Table structure for table `user`
51+
--
52+
53+
CREATE TABLE `user` (
54+
`id` int(10) NOT NULL,
55+
`firstname` varchar(255) NOT NULL,
56+
`lastname` varchar(255) NOT NULL,
57+
`email` varchar(255) NOT NULL,
58+
`password` varchar(255) NOT NULL,
59+
`updated_at` varchar(255) DEFAULT NULL
60+
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
61+
62+
--
63+
-- Dumping data for table `user`
64+
--
65+
66+
INSERT INTO `user` (`id`, `firstname`, `lastname`, `email`, `password`, `updated_at`) VALUES
67+
(1, 'Gowthaman', 'Durai', 'gowthaman.nkl1@gmail.com', 'e10adc3949ba59abbe56e057f20f883e', '2018年11月08日 17:22:58');
68+
69+
--
70+
-- Indexes for dumped tables
71+
--
72+
73+
--
74+
-- Indexes for table `news`
75+
--
76+
ALTER TABLE `news`
77+
ADD PRIMARY KEY (`id`),
78+
ADD KEY `slug` (`slug`);
79+
80+
--
81+
-- Indexes for table `user`
82+
--
83+
ALTER TABLE `user`
84+
ADD PRIMARY KEY (`id`),
85+
ADD UNIQUE KEY `user_email_unique` (`email`);
86+
87+
--
88+
-- AUTO_INCREMENT for dumped tables
89+
--
90+
91+
--
92+
-- AUTO_INCREMENT for table `news`
93+
--
94+
ALTER TABLE `news`
95+
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
96+
--
97+
-- AUTO_INCREMENT for table `user`
98+
--
99+
ALTER TABLE `user`
100+
MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
101+
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
102+
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
103+
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /