-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.sql
79 lines (65 loc) · 1.69 KB
/
schema.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
-- phpMyAdmin SQL Dump
-- version 4.8.3
-- https://www.phpmyadmin.net/
--
-- Host: mariadb
-- Generation Time: Nov 13, 2018 at 05:28 PM
-- Server version: 10.3.10-MariaDB-1:10.3.10+maria~bionic
-- PHP Version: 7.2.8
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
--
-- Database: `curldump`
--
-- --------------------------------------------------------
--
-- Table structure for table `dumps`
--
CREATE TABLE `dumps` (
`id` int(11) NOT NULL,
`server_id` int(10) NOT NULL,
`script_path` varchar(100) NOT NULL,
`data` text NOT NULL,
`created` timestamp NOT NULL DEFAULT current_timestamp(),
`modified` datetime NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `servers`
--
CREATE TABLE `servers` (
`id` int(10) NOT NULL,
`hostname` varchar(50) NOT NULL,
`created` timestamp NOT NULL DEFAULT current_timestamp(),
`modified` datetime NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `dumps`
--
ALTER TABLE `dumps`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `servers`
--
ALTER TABLE `servers`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `hostname` (`hostname`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `dumps`
--
ALTER TABLE `dumps`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `servers`
--
ALTER TABLE `servers`
MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
COMMIT;