Permalink
Browse files

Oracle tables, etc converted from mysql.

  • Loading branch information...
1 parent 9ac796a commit 1930ab36948686f5520b9b973b1d2b3b8d867044 les_kopari committed Sep 13, 2003
Showing with 39 additions and 0 deletions.
  1. +39 −0 backup/db/oci8po.sql
View
@@ -0,0 +1,39 @@
+rem
+rem Table structure for table prefix_backup_files
+rem
+
+drop table prefix_backup_files;
+CREATE TABLE prefix_backup_files (
+ backup_code number(10) default '0' NOT NULL,
+ file_type varchar2(10) default '' NOT NULL,
+ path varchar2(255) default '' NOT NULL,
+ old_id number(10) default NULL,
+ new_id number(10) default NULL
+);
+
+ALTER TABLE prefix_backup_files
+ ADD CONSTRAINT pbf_pk
+ PRIMARY KEY (backup_code,file_type,path);
+
+COMMENT on table prefix_backup_files is 'To store and recode ids to user and course files.';
+rem --------------------------------------------------------
+
+rem
+rem Table structure for table prefix_backup_ids
+rem
+
+drop table prefix_backup_ids;
+CREATE TABLE prefix_backup_ids (
+ backup_code number(12) default '0' NOT NULL,
+ table_name varchar2(30) default '' NOT NULL,
+ old_id number(10) default '0' NOT NULL,
+ new_id number(10) default NULL,
+ info varchar2(20)
+);
+
+ALTER TABLE prefix_backup_ids
+ ADD CONSTRAINT pbi_pk
+ PRIMARY KEY (backup_code,table_name,old_id);
+
+COMMENT on table prefix_backup_ids is 'To store and convert ids in backup/restore';
+

0 comments on commit 1930ab3

Please sign in to comment.