We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
SQLite does not support addForeignKey() but supports foreign key constraints inside columns definitions of CREATE TABLE query.
addForeignKey()
CREATE TABLE
https://www.sqlite.org/foreignkeys.html
CREATE TABLE track( trackid INTEGER, trackname TEXT, trackartist INTEGER, FOREIGN KEY(trackartist) REFERENCES artist(artistid) );
The follow command throws an Exception in SQLite
Exception
./yii migrate:create post --command=table --fields='department_id:integer:notNull:foreignKey(department)'
Due to column foreign key is initialized separately
db-migration/resources/views/_createTable.php
Lines 14 to 26 in 940d988
The text was updated successfully, but these errors were encountered:
ColumnInterface
No branches or pull requests
SQLite does not support
addForeignKey()
but supports foreign key constraints inside columns definitions ofCREATE TABLE
query.https://www.sqlite.org/foreignkeys.html
The follow command throws an
Exception
in SQLite./yii migrate:create post --command=table --fields='department_id:integer:notNull:foreignKey(department)'
Due to column foreign key is initialized separately
db-migration/resources/views/_createTable.php
Lines 14 to 26 in 940d988
The text was updated successfully, but these errors were encountered: