mysql_voicemail.sql 1021 B

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