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 }}
Repository navigation
New data type to store only time with timezone #14211
dialect: postgresFor issues and PRs. Things that involve PostgreSQL (and do not involve all dialects).type: featureDEPRECATED: replace with the "feature" issue type
no - https://mariadb.com/kb/en/time/
mssql
no - https://docs.microsoft.com/en-us/sql/t-sql/data-types/time-transact-sql?view=sql-server-ver15
mysql
no - https://dev.mysql.com/doc/refman/8.0/en/time.html
sqlite
no - https://www.sqlite.org/datatype3.html
db2
no - https://www.ibm.com/docs/en/db2-for-zos/11?topic=columns-date-time-timestamp-data-types
ibmi
no - https://www.ibm.com/docs/en/i/7.3?topic=formats-time-data-type
snowflake
no - https://docs.snowflake.com/en/sql-reference/data-types-datetime.html#time
How can I push changes? I created new branch from main, but when I try to push it, it returns an error:
remote: Permission to sequelize/sequelize.git denied to Sasha-hk.
fatal: unable to access 'https://github.com/sequelize/sequelize.git/': The requested URL returned error: 403
You need to create a fork (only maintainers can create branches in this repository), then open a pull request. All changes (including ours) are done through pull requests :)
Since I think you cloned this repository directly, here is what you can do:
No need to clone your fork, instead change the remote of your local repository: git remote remove origin git remote add origin https://github.com/Sasha-hk/sequelize.git (the same URL you would use to clone)
dialect: postgresFor issues and PRs. Things that involve PostgreSQL (and do not involve all dialects).type: featureDEPRECATED: replace with the "feature" issue type
Activity
ephys commentedon Mar 7, 2022
According to the documentation I could find, only postgres supports
TIME WITH TIME ZONEThe base TIME datatype is here: https://github.com/sequelize/sequelize/blob/main/src/data-types.js#L464
This could be implemented the same way we implement
DataTypes.INTEGER.UNSIGNED: by adding a static getter that sets a flag. e.g.DataTypes.TIME.ZONEDThen postgres's datatype can extend the TIME class to make its
toSqlmethod returnTIME WITH TIME ZONEif the flag is set.Other dialects should log a warning if the flag is set as they don't support it.
Example of how to do that: https://github.com/sequelize/sequelize/blob/main/src/dialects/postgres/data-types.js#L295
This is the more annoying part: Typings will need to be updated too - https://github.com/sequelize/sequelize/blob/main/src/data-types.d.ts#L327
And of course, both typing tests & unit tests would need to be added
oleksandr-petryk commentedon Mar 7, 2022
I need to add warning to each dialect that not support time with timezone ?
ephys commentedon Mar 7, 2022
Unfortunately yes, thankfully there is only a handful of them right now
oleksandr-petryk commentedon Mar 7, 2022
It's not a problem 😄
It's just that I haven't worked with such large projects yet, all I did was up to 20000 lines of code.
oleksandr-petryk commentedon Mar 7, 2022
Where I need to add tests?
I'm already adding unit tests here: https://github.com/sequelize/sequelize/blob/main/test/unit/sql/data-types.test.js
ephys commentedon Mar 7, 2022
That's good for unit tests :)
For typing tests, the right place is this file https://github.com/sequelize/sequelize/blob/main/test/types/data-types.ts
oleksandr-petryk commentedon Mar 9, 2022
How can I push changes? I created new branch from main, but when I try to push it, it returns an error:
remote: Permission to sequelize/sequelize.git denied to Sasha-hk. fatal: unable to access 'https://github.com/sequelize/sequelize.git/': The requested URL returned error: 403Branch name:
feature/time-zonedephys commentedon Mar 9, 2022
You need to create a fork (only maintainers can create branches in this repository), then open a pull request. All changes (including ours) are done through pull requests :)
Since I think you cloned this repository directly, here is what you can do:
git remote remove origingit remote add origin https://github.com/Sasha-hk/sequelize.git(the same URL you would use to clone)ephys commentedon Mar 18, 2024
I forgot to close this issue. Please see reasons for closing here: #14213 (comment)