Add database creation scripts for sqlite old HPR schema
This commit is contained in:
parent
c8dfd14fb4
commit
e86bb8427e
4
_sql/sqlite/Create_Database_Empty.sql
Normal file
4
_sql/sqlite/Create_Database_Empty.sql
Normal file
@ -0,0 +1,4 @@
|
||||
.read Create_Table_miniseries.sql
|
||||
.read Create_Table_licenses.sql
|
||||
.read Create_Table_hosts.sql
|
||||
.read Create_Table_eps.sql
|
16
_sql/sqlite/Create_Table_eps.sql
Normal file
16
_sql/sqlite/Create_Table_eps.sql
Normal file
@ -0,0 +1,16 @@
|
||||
CREATE TABLE eps (
|
||||
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
|
||||
date DATE NOT NULL,
|
||||
title VARCHAR(100) NOT NULL,
|
||||
duration INTEGER NOT NULL,
|
||||
summary VARCHAR(100) NOT NULL,
|
||||
notes TEXT NOT NULL,
|
||||
hostid INTEGER NOT NULL,
|
||||
series INTEGER NOT NULL,
|
||||
explicit INTEGER DEFAULT 1 NOT NULL,
|
||||
license VARCHAR(11) DEFAULT 'CC-BY-SA' NOT NULL,
|
||||
tags VARCHAR(200) NOT NULL,
|
||||
version INTEGER DEFAULT 0 NOT NULL,
|
||||
downloads INTEGER NOT NULL,
|
||||
valid INTEGER NOT NULL
|
||||
);
|
12
_sql/sqlite/Create_Table_hosts.sql
Normal file
12
_sql/sqlite/Create_Table_hosts.sql
Normal file
@ -0,0 +1,12 @@
|
||||
-- hosts definition
|
||||
|
||||
CREATE TABLE hosts (
|
||||
hostid INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
|
||||
host TEXT NOT NULL,
|
||||
email TEXT NOT NULL,
|
||||
profile TEXT NOT NULL,
|
||||
license VARCHAR(11) DEFAULT 'CC-BY-SA',
|
||||
local_image INTEGER DEFAULT 0 NOT NULL,
|
||||
gpg TEXT NOT NULL,
|
||||
espeak_name TEXT
|
||||
);
|
8
_sql/sqlite/Create_Table_licenses.sql
Normal file
8
_sql/sqlite/Create_Table_licenses.sql
Normal file
@ -0,0 +1,8 @@
|
||||
-- licenses definition
|
||||
|
||||
CREATE TABLE licenses (
|
||||
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
|
||||
short_name VARCHAR(11) NOT NULL,
|
||||
long_name VARCHAR(40) NOT NULL,
|
||||
url VARCHAR(80) NOT NULL
|
||||
);
|
10
_sql/sqlite/Create_Table_miniseries.sql
Normal file
10
_sql/sqlite/Create_Table_miniseries.sql
Normal file
@ -0,0 +1,10 @@
|
||||
-- miniseries definition
|
||||
|
||||
CREATE TABLE miniseries (
|
||||
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
|
||||
name VARCHAR(100) NOT NULL,
|
||||
description TEXT NOT NULL,
|
||||
private INTEGER NOT NULL,
|
||||
image TEXT NOT NULL,
|
||||
valid INTEGER DEFAULT 1 NOT NULL
|
||||
);
|
Loading…
Reference in New Issue
Block a user