postgresql_rc4_to_rc5.sql
Upload User: gdxydsw
Upload Date: 2019-01-29
Package Size: 16721k
Code Size: 1k
Category:

Java Develop

Development Platform:

Java

  1. CREATE TABLE jforum_posts_text (
  2. post_id INTEGER NOT NULL,
  3. post_text TEXT,
  4. post_subject VARCHAR(100) DEFAULT NULL,
  5. PRIMARY KEY ( post_id )
  6. );
  7. INSERT INTO jforum_posts_text ( post_id, post_text, post_subject ) SELECT post_id, post_text, post_subject FROM jforum_posts;
  8. ALTER TABLE jforum_posts DROP COLUMN post_subject;
  9. ALTER TABLE jforum_posts DROP COLUMN post_text;
  10. CREATE TABLE jforum_privmsgs_text (
  11. privmsgs_id INTEGER NOT NULL,
  12. privmsgs_text TEXT
  13. );
  14. CREATE INDEX idx_pm_text_id ON jforum_privmsgs_text (privmsgs_id);
  15. INSERT INTO jforum_privmsgs_text ( privmsgs_id, privmsgs_text ) SELECT privmsgs_id, privmsgs_text FROM jforum_privmsgs;
  16. ALTER TABLE jforum_privmsgs DROP COLUMN privmsgs_text;
  17. DROP TABLE jforum_resutls;
  18. CREATE TABLE jforum_vote_results (
  19.   vote_id INTEGER NOT NULL DEFAULT 0,
  20.   vote_option_id INTEGER NOT NULL DEFAULT 0,
  21.   vote_option_text VARCHAR(255) NOT NULL DEFAULT '',
  22.   vote_result INTEGER NOT NULL DEFAULT 0
  23. );