add first sql version to history
This commit is contained in:
parent
2f015418f0
commit
75eae7b7de
6 changed files with 78 additions and 0 deletions
|
@ -0,0 +1,21 @@
|
||||||
|
-- Exported definition from 2007-03-20T17:06:21
|
||||||
|
-- Class oilarchive.model.ArchiveItem
|
||||||
|
-- Database: mysql
|
||||||
|
CREATE TABLE archive_item (
|
||||||
|
id INT PRIMARY KEY AUTO_INCREMENT,
|
||||||
|
hash_id VARCHAR(128) NOT NULL UNIQUE,
|
||||||
|
title TEXT,
|
||||||
|
description TEXT,
|
||||||
|
author TEXT,
|
||||||
|
text TEXT,
|
||||||
|
url TEXT,
|
||||||
|
download_ur_l TEXT,
|
||||||
|
icon TEXT,
|
||||||
|
release_date DATETIME,
|
||||||
|
pub_date DATETIME,
|
||||||
|
size INT,
|
||||||
|
rights INT,
|
||||||
|
archive_name TEXT,
|
||||||
|
archive_type TEXT
|
||||||
|
);
|
||||||
|
;
|
17
oilarchive/sqlobject-history/2007-03-20/Group_mysql.sql
Normal file
17
oilarchive/sqlobject-history/2007-03-20/Group_mysql.sql
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
-- Exported definition from 2007-03-20T17:06:21
|
||||||
|
-- Class oilarchive.model.Group
|
||||||
|
-- Database: mysql
|
||||||
|
CREATE TABLE tg_group (
|
||||||
|
id INT PRIMARY KEY AUTO_INCREMENT,
|
||||||
|
group_name VARCHAR(16) NOT NULL UNIQUE,
|
||||||
|
display_name VARCHAR(255),
|
||||||
|
created DATETIME
|
||||||
|
);
|
||||||
|
CREATE TABLE user_group (
|
||||||
|
group_id INT NOT NULL,
|
||||||
|
user_id INT NOT NULL
|
||||||
|
);
|
||||||
|
CREATE TABLE group_permission (
|
||||||
|
group_id INT NOT NULL,
|
||||||
|
permission_id INT NOT NULL
|
||||||
|
);
|
|
@ -0,0 +1,9 @@
|
||||||
|
-- Exported definition from 2007-03-20T17:06:21
|
||||||
|
-- Class oilarchive.model.Permission
|
||||||
|
-- Database: mysql
|
||||||
|
CREATE TABLE permission (
|
||||||
|
id INT PRIMARY KEY AUTO_INCREMENT,
|
||||||
|
permission_name VARCHAR(16) NOT NULL UNIQUE,
|
||||||
|
description VARCHAR(255)
|
||||||
|
);
|
||||||
|
;
|
12
oilarchive/sqlobject-history/2007-03-20/User_mysql.sql
Normal file
12
oilarchive/sqlobject-history/2007-03-20/User_mysql.sql
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
-- Exported definition from 2007-03-20T17:06:21
|
||||||
|
-- Class oilarchive.model.User
|
||||||
|
-- Database: mysql
|
||||||
|
CREATE TABLE tg_user (
|
||||||
|
id INT PRIMARY KEY AUTO_INCREMENT,
|
||||||
|
user_name VARCHAR(16) NOT NULL UNIQUE,
|
||||||
|
email_address VARCHAR(255) NOT NULL UNIQUE,
|
||||||
|
display_name VARCHAR(255),
|
||||||
|
password VARCHAR(40),
|
||||||
|
created DATETIME
|
||||||
|
);
|
||||||
|
;
|
|
@ -0,0 +1,9 @@
|
||||||
|
-- Exported definition from 2007-03-20T17:06:21
|
||||||
|
-- Class oilarchive.model.VisitIdentity
|
||||||
|
-- Database: mysql
|
||||||
|
CREATE TABLE visit_identity (
|
||||||
|
id INT PRIMARY KEY AUTO_INCREMENT,
|
||||||
|
visit_key VARCHAR(40) NOT NULL UNIQUE,
|
||||||
|
user_id INT
|
||||||
|
);
|
||||||
|
;
|
10
oilarchive/sqlobject-history/2007-03-20/Visit_mysql.sql
Normal file
10
oilarchive/sqlobject-history/2007-03-20/Visit_mysql.sql
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
-- Exported definition from 2007-03-20T17:06:21
|
||||||
|
-- Class oilarchive.model.Visit
|
||||||
|
-- Database: mysql
|
||||||
|
CREATE TABLE visit (
|
||||||
|
id INT PRIMARY KEY AUTO_INCREMENT,
|
||||||
|
visit_key VARCHAR(40) NOT NULL UNIQUE,
|
||||||
|
created DATETIME,
|
||||||
|
expiry DATETIME
|
||||||
|
);
|
||||||
|
;
|
Loading…
Reference in a new issue