Skip to content

Commit

Permalink
SHORTURL-26 add db scripts
Browse files Browse the repository at this point in the history
git-svn-id: https://source.sakaiproject.org/svn/shortenedurl/trunk@87923 66ffb92e-73f9-0310-93c1-f5514f145a0a
  • Loading branch information
steveswinsburg committed Feb 2, 2011
1 parent ed38ad6 commit 27958e7
Show file tree
Hide file tree
Showing 15 changed files with 106 additions and 12 deletions.
11 changes: 11 additions & 0 deletions shortenedurl/ddl/db2/shortenedurl-ddl-1.1-SNAPSHOT-db2.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

create table URL_RANDOMISED_MAPPINGS_T (
ID bigint generated by default as identity,
TINY varchar(255) not null,
URL varchar(4000) not null,
primary key (ID)
);

create index URL_INDEX on URL_RANDOMISED_MAPPINGS_T (URL);

create index KEY_INDEX on URL_RANDOMISED_MAPPINGS_T (TINY);
2 changes: 0 additions & 2 deletions shortenedurl/ddl/hibernate-derby.properties

This file was deleted.

2 changes: 0 additions & 2 deletions shortenedurl/ddl/hibernate-mssql.properties

This file was deleted.

2 changes: 0 additions & 2 deletions shortenedurl/ddl/hibernate-postgres.properties

This file was deleted.

11 changes: 11 additions & 0 deletions shortenedurl/ddl/hsqldb/shortenedurl-ddl-1.1-SNAPSHOT-hsqldb.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

create table URL_RANDOMISED_MAPPINGS_T (
ID bigint generated by default as identity (start with 1),
TINY varchar(255) not null,
URL varchar(4000) not null,
primary key (ID)
);

create index URL_INDEX on URL_RANDOMISED_MAPPINGS_T (URL);

create index KEY_INDEX on URL_RANDOMISED_MAPPINGS_T (TINY);
11 changes: 11 additions & 0 deletions shortenedurl/ddl/mysql/shortenedurl-ddl-1.1-SNAPSHOT-mysql.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

create table URL_RANDOMISED_MAPPINGS_T (
ID bigint not null auto_increment,
TINY varchar(255) not null,
URL text not null,
primary key (ID)
);

create index URL_INDEX on URL_RANDOMISED_MAPPINGS_T (URL);

create index KEY_INDEX on URL_RANDOMISED_MAPPINGS_T (TINY);
13 changes: 13 additions & 0 deletions shortenedurl/ddl/oracle/shortenedurl-ddl-1.1-SNAPSHOT-oracle.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@

create table URL_RANDOMISED_MAPPINGS_T (
ID number(19,0) not null,
TINY varchar2(255) not null,
URL varchar2(4000) not null,
primary key (ID)
);

create index URL_INDEX on URL_RANDOMISED_MAPPINGS_T (URL);

create index KEY_INDEX on URL_RANDOMISED_MAPPINGS_T (TINY);

create sequence URL_RANDOMISED_MAPPINGS_S;
8 changes: 4 additions & 4 deletions shortenedurl/ddl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,15 @@

<packaging>pom</packaging>

<!--
<parent>
<groupId>org.sakaiproject.shortenedurl</groupId>
<artifactId>shortenedurl</artifactId>
<version>1.0-SNAPSHOT</version>
<version>1.1-SNAPSHOT</version>
</parent>
-->

<properties>
<!-- change this to reflect the name to use for the ddl files -->
<project.ddl.name>tinyurl-ddl</project.ddl.name>
<project.ddl.name>shortenedurl-ddl</project.ddl.name>
</properties>

<dependencies>
Expand Down Expand Up @@ -117,6 +115,7 @@
</componentProperties>
</configuration>
</execution>
<!--
<execution>
<id>export-mssql</id>
<phase>process-classes</phase>
Expand Down Expand Up @@ -156,6 +155,7 @@
</componentProperties>
</configuration>
</execution>
-->
</executions>
</plugin>
</plugins>
Expand Down
4 changes: 2 additions & 2 deletions shortenedurl/docs/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ This is a known issue. For upgrades, the upgrade script will add the indexes for

ERRORS/OMISSIONS:
-----------------
For any errors or omissions, please open a Jira ticket at http://jira.sakaiproject.org/jira/browse/TINYURL
For any errors or omissions, please open a Jira ticket at http://jira.sakaiproject.org/jira/browse/SHORTURL

---
Steve Swinsburg
August 2010
February 2011
11 changes: 11 additions & 0 deletions shortenedurl/docs/database/db2/shortenedurl-ddl-1.0.0-db2.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

create table URL_RANDOMISED_MAPPINGS_T (
ID bigint generated by default as identity,
TINY varchar(255) not null,
URL varchar(4000) not null,
primary key (ID)
);

create index URL_INDEX on URL_RANDOMISED_MAPPINGS_T (URL);

create index KEY_INDEX on URL_RANDOMISED_MAPPINGS_T (TINY);
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

create table URL_RANDOMISED_MAPPINGS_T (
ID bigint generated by default as identity (start with 1),
TINY varchar(255) not null,
URL varchar(4000) not null,
primary key (ID)
);

create index URL_INDEX on URL_RANDOMISED_MAPPINGS_T (URL);

create index KEY_INDEX on URL_RANDOMISED_MAPPINGS_T (TINY);
11 changes: 11 additions & 0 deletions shortenedurl/docs/database/mysql/shortenedurl-ddl-1.0.0-mysql.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

create table URL_RANDOMISED_MAPPINGS_T (
ID bigint not null auto_increment,
TINY varchar(255) not null,
URL text not null,
primary key (ID)
);

create index URL_INDEX on URL_RANDOMISED_MAPPINGS_T (URL);

create index KEY_INDEX on URL_RANDOMISED_MAPPINGS_T (TINY);
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

/** 1.0.0 indexes only **/
create index URL_INDEX on URL_RANDOMISED_MAPPINGS_T (URL);
create index KEY_INDEX on URL_RANDOMISED_MAPPINGS_T (TINY);
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@

create table URL_RANDOMISED_MAPPINGS_T (
ID number(19,0) not null,
TINY varchar2(255) not null,
URL varchar2(4000) not null,
primary key (ID)
);

create index URL_INDEX on URL_RANDOMISED_MAPPINGS_T (URL);

create index KEY_INDEX on URL_RANDOMISED_MAPPINGS_T (TINY);

create sequence URL_RANDOMISED_MAPPINGS_S;
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

/** 1.0.0 indexes only **/
create index URL_INDEX on URL_RANDOMISED_MAPPINGS_T (URL);
create index KEY_INDEX on URL_RANDOMISED_MAPPINGS_T (TINY);

0 comments on commit 27958e7

Please sign in to comment.