Hi,
I have been trying to look at this. Please excuse the DDL statements as I am working with several tools and removing some of the noise its reporting to me. Here is so far what I have found:
lesson_essay table does not seem to exist on mysql, in this case it looks be the other way around. Or maybe the intent was not to use lessay_essay table. Anyone with better historical understanding of
lesson module?
DROP TABLE mdl_lesson_essay;
-- lesson_essay table only exists on postgresql, was upgraded on 2004072100
-- missing on both mysql.sql and mysql.php
Table
scorm and excercise_submissions is out of sync if its a fresh install, but will have no problem if its been upgraded. So I guess I can file a bug report for the 2 tables?
ALTER TABLE mdl_scorm
ADD COLUMN version character varying(9) DEFAULT ''::character varying NOT NULL;
-- properly added on postgres7.php version 2005041600, but not present on postgres7.sql
ALTER TABLE mdl_exercise_submissions
ADD COLUMN late smallint DEFAULT 0::smallint NOT NULL;
-- properly added on postgres7.php version 2003121000, but not present on postgres7.sql
Question type rqp seems to be out of sync, but I am not sure how to go about this. Maybe its in active development?
CREATE TABLE mdl_question_rqp_servers (
typeid integer DEFAULT 0 NOT NULL,
can_author smallint DEFAULT 0::smallint NOT NULL,
can_render smallint DEFAULT 0::smallint NOT NULL,
url character varying(255) DEFAULT ''::character varying NOT NULL,
id serial NOT NULL
);
ALTER TABLE mdl_question_rqp_types
DROP COLUMN cloning_server,
DROP COLUMN flags,
DROP COLUMN rendering_server;
I ignored the differences between mysql and postgresql in terms of column default values and not null constraints. I also ignored for the differences in indexes. I also ignored and removed any data type differences, hopefully I did not miss columns that where intentionally changed to a different data type. Anyone else looking for differences with pgsql and mysql?
Jun