From e6d1dd2764dbe7594300931bc002ce386f2cc7fa Mon Sep 17 00:00:00 2001 From: Calvin Date: Sat, 8 Sep 2012 02:04:52 +0800 Subject: [PATCH] =?UTF-8?q?#60=20H2=20+=20Oracle=E7=9A=84=E5=AE=9E?= =?UTF-8?q?=E9=99=85=E5=BC=80=E5=8F=91=E5=9C=BA=E6=99=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/sql/h2/schema-with-oracle.sql | 24 +++++++++++++++++++ .../src/main/resources/sql/h2/schema.sql | 1 - .../src/main/resources/sql/oracle/schema.sql | 24 +++++++++++++++++++ 3 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 examples/quickstart/src/main/resources/sql/h2/schema-with-oracle.sql create mode 100644 examples/quickstart/src/main/resources/sql/oracle/schema.sql diff --git a/examples/quickstart/src/main/resources/sql/h2/schema-with-oracle.sql b/examples/quickstart/src/main/resources/sql/h2/schema-with-oracle.sql new file mode 100644 index 00000000..8d53d57b --- /dev/null +++ b/examples/quickstart/src/main/resources/sql/h2/schema-with-oracle.sql @@ -0,0 +1,24 @@ +drop table if exists ss_task; +drop table if exists ss_user; + +create table ss_task ( + id bigint, + title varchar(128) not null, + description varchar(255), + user_id bigint, + primary key (id) +); + +create table ss_user ( + id bigint, + login_name varchar(64) not null unique, + name varchar(64), + password varchar(255), + salt varchar(64), + roles varchar(255), + primary key (id) +); + + +create sequence ss_seq_task start with 100 increment by 20; +create sequence ss_seq_user start with 100 increment by 20; \ No newline at end of file diff --git a/examples/quickstart/src/main/resources/sql/h2/schema.sql b/examples/quickstart/src/main/resources/sql/h2/schema.sql index d19b8413..2a3414fc 100644 --- a/examples/quickstart/src/main/resources/sql/h2/schema.sql +++ b/examples/quickstart/src/main/resources/sql/h2/schema.sql @@ -1,4 +1,3 @@ - drop table if exists ss_task; drop table if exists ss_user; diff --git a/examples/quickstart/src/main/resources/sql/oracle/schema.sql b/examples/quickstart/src/main/resources/sql/oracle/schema.sql new file mode 100644 index 00000000..323b8b0d --- /dev/null +++ b/examples/quickstart/src/main/resources/sql/oracle/schema.sql @@ -0,0 +1,24 @@ +drop table ss_task; +drop table ss_user; + +create table ss_task ( + id number(19,0), + title varchar2(128) not null, + description varchar2(255), + user_id bigint, + primary key (id) +); + +create table ss_user ( + id number(19,0), + login_name varchar2(64) not null unique, + name varchar2(64), + password varchar2(255), + salt varchar2(64), + roles varchar2(255), + primary key (id) +); + + +create sequence ss_seq_task start with 100 increment by 20; +create sequence ss_seq_user start with 100 increment by 20; \ No newline at end of file