From 75eae7b7de2e6ccd490a0cfc0058817339711f29 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 20 Mar 2007 16:13:03 +0000 Subject: [PATCH] add first sql version to history --- .../2007-03-20/ArchiveItem_mysql.sql | 21 +++++++++++++++++++ .../2007-03-20/Group_mysql.sql | 17 +++++++++++++++ .../2007-03-20/Permission_mysql.sql | 9 ++++++++ .../2007-03-20/User_mysql.sql | 12 +++++++++++ .../2007-03-20/VisitIdentity_mysql.sql | 9 ++++++++ .../2007-03-20/Visit_mysql.sql | 10 +++++++++ 6 files changed, 78 insertions(+) create mode 100644 oilarchive/sqlobject-history/2007-03-20/ArchiveItem_mysql.sql create mode 100644 oilarchive/sqlobject-history/2007-03-20/Group_mysql.sql create mode 100644 oilarchive/sqlobject-history/2007-03-20/Permission_mysql.sql create mode 100644 oilarchive/sqlobject-history/2007-03-20/User_mysql.sql create mode 100644 oilarchive/sqlobject-history/2007-03-20/VisitIdentity_mysql.sql create mode 100644 oilarchive/sqlobject-history/2007-03-20/Visit_mysql.sql diff --git a/oilarchive/sqlobject-history/2007-03-20/ArchiveItem_mysql.sql b/oilarchive/sqlobject-history/2007-03-20/ArchiveItem_mysql.sql new file mode 100644 index 0000000..436c6cf --- /dev/null +++ b/oilarchive/sqlobject-history/2007-03-20/ArchiveItem_mysql.sql @@ -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 +); +; diff --git a/oilarchive/sqlobject-history/2007-03-20/Group_mysql.sql b/oilarchive/sqlobject-history/2007-03-20/Group_mysql.sql new file mode 100644 index 0000000..eb9e3a0 --- /dev/null +++ b/oilarchive/sqlobject-history/2007-03-20/Group_mysql.sql @@ -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 +); diff --git a/oilarchive/sqlobject-history/2007-03-20/Permission_mysql.sql b/oilarchive/sqlobject-history/2007-03-20/Permission_mysql.sql new file mode 100644 index 0000000..cd767f2 --- /dev/null +++ b/oilarchive/sqlobject-history/2007-03-20/Permission_mysql.sql @@ -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) +); +; diff --git a/oilarchive/sqlobject-history/2007-03-20/User_mysql.sql b/oilarchive/sqlobject-history/2007-03-20/User_mysql.sql new file mode 100644 index 0000000..4c41eb4 --- /dev/null +++ b/oilarchive/sqlobject-history/2007-03-20/User_mysql.sql @@ -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 +); +; diff --git a/oilarchive/sqlobject-history/2007-03-20/VisitIdentity_mysql.sql b/oilarchive/sqlobject-history/2007-03-20/VisitIdentity_mysql.sql new file mode 100644 index 0000000..2444e92 --- /dev/null +++ b/oilarchive/sqlobject-history/2007-03-20/VisitIdentity_mysql.sql @@ -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 +); +; diff --git a/oilarchive/sqlobject-history/2007-03-20/Visit_mysql.sql b/oilarchive/sqlobject-history/2007-03-20/Visit_mysql.sql new file mode 100644 index 0000000..c19c603 --- /dev/null +++ b/oilarchive/sqlobject-history/2007-03-20/Visit_mysql.sql @@ -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 +); +;