Skip to content

Commit

Permalink
update oracle ddl
Browse files Browse the repository at this point in the history
  • Loading branch information
Foxcapades committed Sep 22, 2023
1 parent 2bbd050 commit 5eb2d13
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions schemata/ddl/oracle.sql
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ CREATE USER vdi IDENTIFIED BY asdfasdfasdfasdfasdf;
ALTER USER vdi QUOTA UNLIMITED ON users;

CREATE TABLE vdi.dataset (
dataset_id CHAR(32)
dataset_id VARCHAR(32)
PRIMARY KEY
NOT NULL
, owner NUMBER
Expand All @@ -22,7 +22,7 @@ CREATE TABLE vdi.dataset (
);

CREATE TABLE vdi.sync_control (
dataset_id CHAR(32)
dataset_id VARCHAR(32)
NOT NULL
, shares_update_time TIMESTAMP WITH TIME ZONE
NOT NULL
Expand All @@ -34,7 +34,7 @@ CREATE TABLE vdi.sync_control (
);

CREATE TABLE vdi.dataset_install_message (
dataset_id CHAR(32)
dataset_id VARCHAR(32)
NOT NULL
, install_type VARCHAR2(64)
NOT NULL
Expand All @@ -45,15 +45,15 @@ CREATE TABLE vdi.dataset_install_message (
);

CREATE TABLE vdi.dataset_visibility (
dataset_id CHAR(32)
dataset_id VARCHAR(32)
NOT NULL
, user_id NUMBER
NOT NULL
, FOREIGN KEY (dataset_id) REFERENCES vdi.dataset (dataset_id)
);

CREATE TABLE vdi.dataset_project (
dataset_id CHAR(32)
dataset_id VARCHAR(32)
NOT NULL
, project_id VARCHAR2(64)
NOT NULL
Expand Down

0 comments on commit 5eb2d13

Please sign in to comment.