You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.
Currently if I use DDL to add the basic (not unique) Index as constraint via CreateTable or AlterTable it does it via INDEX inside the CREATE TABLE statement like this:
CREATETABLE "example" (
"id"BIGINTNOT NULL,
"anothercol"VARCHAR(10) NOT NULL,
PRIMARY KEY ("id"),
INDEX "example_index"("anothercol")
)
This works since ages on MySQL (which is probably the original and best supported part via LAMP environment and origin of ZF) and seemingly on MSSQL since SQL Server 2008 according to documentation. It's not supported by SQLite, PostgreSQL, IBM DB/2 and seemingly neither Oracle.
However every database seems to support the separate CREATE INDEX command including MySQL and MSSQL.
By rewriting the decorators this should be achievable and I could try contribute these parts of codes if such chaining of commands wouldn't contradict the guidelines. Alternatively additional DDL commands just for creating and dropping index would be needed to achieve the same. Perhaps this would even be a nice compromise. Creating the additional commands and later just call them from the decorators.
The text was updated successfully, but these errors were encountered:
Wrong one. That was SQL server compatibility in general. Index specifically I did at #163 which if goes through can be applied to SQL now that I have decorators for it too.
Currently if I use DDL to add the basic (not unique) Index as constraint via CreateTable or AlterTable it does it via INDEX inside the CREATE TABLE statement like this:
This works since ages on MySQL (which is probably the original and best supported part via LAMP environment and origin of ZF) and seemingly on MSSQL since SQL Server 2008 according to documentation. It's not supported by SQLite, PostgreSQL, IBM DB/2 and seemingly neither Oracle.
However every database seems to support the separate CREATE INDEX command including MySQL and MSSQL.
This would be a working series of commands:
By rewriting the decorators this should be achievable and I could try contribute these parts of codes if such chaining of commands wouldn't contradict the guidelines. Alternatively additional DDL commands just for creating and dropping index would be needed to achieve the same. Perhaps this would even be a nice compromise. Creating the additional commands and later just call them from the decorators.
The text was updated successfully, but these errors were encountered: