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

Migration error using SQL Server as Database Engine. #81

Open
yuliusardian opened this issue Sep 6, 2021 · 4 comments
Open

Migration error using SQL Server as Database Engine. #81

yuliusardian opened this issue Sep 6, 2021 · 4 comments

Comments

@yuliusardian
Copy link

Migration Error

SQLSTATE[42000]: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Incorrect syntax near the keyword 'RESTRICT'.

Ganti semua

->onDelete('restrict');

Pada masing-masing file migration

->onDelete(null);

Problem Solved.

@uyab
Copy link
Contributor

uyab commented Sep 6, 2021

Saya kurang familiar dengan SQL Server, apakah ada referensi atau artikel terkait ini?

@rizkyarlin
Copy link
Contributor

ini penyebabnya karena 'restrict' itu tidak ada di sql server

@yuliusardian
Copy link
Author

Untuk referensi saya kemarin lihat di Google @uyab
Seperti yang dikatakan oleh @rizkyarlin restrict pada SQL Server tidak ada.

@uyab uyab closed this as completed Sep 7, 2021
@uyab uyab reopened this Sep 7, 2021
@uyab
Copy link
Contributor

uyab commented Sep 7, 2021

Ok paham, sepertinya migration files ini dipublish saja, jadi bebas dimodifikasi sesuai kebutuhan.

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

3 participants