Skip to content
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

MSSQL Migration Error #1661

Open
meladon1337 opened this issue Feb 21, 2024 · 0 comments
Open

MSSQL Migration Error #1661

meladon1337 opened this issue Feb 21, 2024 · 0 comments

Comments

@meladon1337
Copy link

When applying the migrations to a azure mssql Database the following migration does not work.
https://github.com/eclipse/hawkbit/blob/master/hawkbit-repository/hawkbit-repository-jpa/src/main/resources/db/migration/SQL_SERVER/V1_12_16__add_action_initiated_by___SQL_SERVER.sql

Fixed the issue with the "GO;" because it does not work in one statement:
ALTER TABLE sp_action ADD initiated_by VARCHAR(64) NOT NULL CONSTRAINT DF_SpAction_InitiatedBy DEFAULT '';
GO;
ALTER TABLE sp_action DROP CONSTRAINT DF_SpAction_InitiatedBy;
ALTER TABLE sp_target_filter_query ADD auto_assign_initiated_by VARCHAR(64);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant