-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing table definition for MSSQL: mqtt_pub #3097
Comments
So we're. And currently we have no running MSSQL to check against. We also cannot test ejabberd against MSSQL in Travis, so things are quite complicated. |
Yes, those are the "default" and the "new" schemas, see https://docs.ejabberd.im/admin/configuration/database-ldap/#default-and-new-schemas Looking at mssql.sql, it seems to be based on the default schema, that is Did you look at this, are you interested at all, or otherwise this issue can be closed? |
Hi, and thanks for the reply! Honestly, once I got our install up and running I haven't really looked into this that much more. Feel free to close the issue. I still have my original solution - taking what I guess was the default schema based on Thanks again, |
The missing tables still not part of the mssql, an update would be useful. |
@wahur666 : If @petertirrell shares here his definition of the missing tables, and you can try them, and you confirm they work too for you... they could be included in ejabberd. |
@wahur666 @badlop , here's what I have for the MSSQL schema for
|
@badlop @petertirrell I can confirm, that the code works, thank you :) Is there a way to reinitialize the database, because switching from Mnesia, there is literally nothing in it. |
You have two things to check: |
@badlop It was the first one, thank you for the help :) |
Thanks! I've committed them to ejabberd |
Environment
erl +V
Configuration (only if needed): grep -Ev '^$|^\s*#' ejabberd.yml
Errors from error.log/crash.log
No errors
Bug description
I am trying to set up ejabberd against an MSSQL backend and I ran into the same issue as bug #2843 regarding the missing
mqtt_pub
table. It looks like the table definition for that table has not been added to themssql.sql
scipt at https://github.com/processone/ejabberd/tree/master/sql .I moved on locally by porting the MySQL script (sort of?) to MSSQL and adding the table to get past the error, but I'm not fully confident in my porting skills.
I could spend some time in making sure I have the type conversions correct and make a PR, but it looks like in the source there are two different MySQL table definitions for that table:
mysql.new.sql
andmysql.sql
. Which is the correct schema for themqtt_pub
table that should be added to the MSSQL script?Thanks,
The text was updated successfully, but these errors were encountered: