A user attempts to restore a Discourse database from version 3.3.0.beta1 to 3.5.0.beta7 but encounters a PG::DuplicateTable error for the discourse_automation_automations table. The issue arises because a migration from 2019 (create_automations_table.rb) is being re-applied, even though the table already exists. The user tries various solutions, including deleting migrations, skipping them, and manually inserting entries into schema_migrations, but none resolve the problem. The user eventually restores the original database and concludes the issue may not be common, suggesting the topic can be closed. pfaffman discusses the challenge, while Moin raises a potential plugin conflict, which is dismissed. tobiaseigen suggests closing the topic.
<meta name="generator" content="Discourse 3.3.0.beta1-dev - https://github.com/discourse/discourse version a4022f69f31af611bc0e21258b0ccb77dec38ba3">
to current. I copied the same app.yml and am restoring (new VM and trying to sidestep the pg upgrade, though maybe I should try that instead of the restore)
אני חושב ש-3.3beta1 היה לפני שהתוסף שולב בליבה באפריל. האם זה יכול לגרום לבעיות כלשהן — לדוגמה, בגלל שהתוסף משולב כעת בליבה בעודו עדיין מותקן בנפרד דרך app.yml?
זה רעיון טוב, אבל זה לא זה. אני לא כולל את זה שוב. אני תוהה אם אולי הייתי צריך לנסות להוסיף את זה (אבל אני לא רואה את זה במבט מהיר). הרעיון הנוכחי שלי הוא להסיר את כל טבלאות האוטומציות (הן ריקות) באתר הישן, ליצור גיבוי חדש ולנסות לשחזר אותו.
וכנראה שהייתי צריך להסיר 20190601000001_create_automations_table.rb, אבל במקום זאת הוספתי קוד ‘unless table exists’ (אני חושב שכשהסרתי את זה הייתה לי בעיה אחרת?).