oracle_voicemail.sql 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. CREATE TABLE alembic_version (
  2. version_num VARCHAR2(32 CHAR) NOT NULL,
  3. CONSTRAINT alembic_version_pkc PRIMARY KEY (version_num)
  4. )
  5. /
  6. -- Running upgrade -> a2e9769475e
  7. CREATE TABLE voicemail_messages (
  8. dir VARCHAR2(255 CHAR) NOT NULL,
  9. msgnum INTEGER NOT NULL,
  10. context VARCHAR2(80 CHAR),
  11. macrocontext VARCHAR2(80 CHAR),
  12. callerid VARCHAR2(80 CHAR),
  13. origtime INTEGER,
  14. duration INTEGER,
  15. recording BLOB,
  16. flag VARCHAR2(30 CHAR),
  17. category VARCHAR2(30 CHAR),
  18. mailboxuser VARCHAR2(30 CHAR),
  19. mailboxcontext VARCHAR2(30 CHAR),
  20. msg_id VARCHAR2(40 CHAR)
  21. )
  22. /
  23. ALTER TABLE voicemail_messages ADD CONSTRAINT voicemail_messages_dir_msgnum PRIMARY KEY (dir, msgnum)
  24. /
  25. CREATE INDEX voicemail_messages_dir ON voicemail_messages (dir)
  26. /
  27. INSERT INTO alembic_version (version_num) VALUES ('a2e9769475e')
  28. /
  29. -- Running upgrade a2e9769475e -> 39428242f7f5
  30. ALTER TABLE voicemail_messages MODIFY recording BLOB
  31. /
  32. UPDATE alembic_version SET version_num='39428242f7f5' WHERE alembic_version.version_num = 'a2e9769475e'
  33. /