Permalink
Browse files

added 2/3 of migration script

  • Loading branch information...
1 parent 9e9b51d commit b8a86d5affa5663c5e75130e5bcef655cd3be918 @dom-mel committed Apr 20, 2012
Showing with 3 additions and 13 deletions.
  1. +1 −13 create.sql
  2. +2 −0 migrate.sql
View
@@ -1,22 +1,10 @@
CREATE OR REPLACE TYPE o_gr01_person AS OBJECT (
name varchar2(30),
- vorname varchar2(20),
- constructor function o_gr01_person(name varchar2, vorname varchar2) return self as result
+ vorname varchar2(20)
)
NOT FINAL;
/
-create type body o_gr01_person as
- constructor function o_gr01_person(name varchar2, vorname varchar2) return self as result is
- begin
- self.name = name;
- self.vorname = vorname;
- return;
- end;
-end;
-/
-
-
CREATE OR REPLACE TYPE o_gr01_buch AS OBJECT (
isbn varchar2(20),
titelblatt blob,
View
@@ -0,0 +1,2 @@
+INSERT INTO t_gr01_autorinnen select name, vorname FROM hs.person;
+INSERT INTO t_gr01_buecher select isbn, titelblatt, bildgroesse, titel, text, video, videogroesse, videoformat, seitenanzahl, exemplare, leihfrist FROM hs.buch;

0 comments on commit b8a86d5

Please sign in to comment.