Ariel Mashraki
cfee55e514
schema/field: add an option to configure the database type ( #484 )
2020-05-11 15:07:33 +03:00
Alex Snast
68db86be76
avoid multiple rows.Err calls on error path
...
Signed-off-by: Alex Snast <alexsn@fb.com >
2020-05-11 14:26:40 +03:00
Ciaran Liedeman
f59abad425
fix: checks for error after rows.Next call ( #480 )
2020-05-09 16:23:47 +03:00
Ariel Mashraki
f384701c04
dialect/sql/schemma: ignore pgtime default value on scanning ( #468 )
2020-05-06 22:34:01 +03:00
Ariel Mashraki
196a764691
dialect/sql/schema: use the postgres column type if exists ( #466 )
2020-05-06 21:54:21 +03:00
Ariel Mashraki
51cdda421f
dialect/sql/schema: add optional schema-type to column spec ( #461 )
2020-05-04 20:16:43 +03:00
Ariel Mashraki
2208b243db
dialect/sql/schema: initial work for incremental migration ( #428 )
...
This is a WIP PR and should be ignored this moment.
It's based on PR #221 created by Erik Hollensbe (He should
get his credit for his work before we land this).
2020-04-12 19:12:33 +03:00
Ariel Mashraki
b1eb999097
dialect/sql/schema: comment changes ( #415 )
2020-03-31 22:51:50 +03:00
Ariel Mashraki
26440c2bc9
dialect/sql/schema: setrange on custom column name of pks ( #333 )
2020-02-09 09:41:26 +02:00
Ariel Mashraki
b4255998bf
entc/gen: change name format for edge fks ( #286 )
...
* entc/gen: change name format for edge fks
* dialect/sql/schema: add fixture support for mysql and postgres
* sql/dialect: merge fkcolumn queries to one for the 2 dialects
2020-02-03 15:41:55 +02:00
Ariel Mashraki
6819c01906
dialect/sql: allow nil values for exec commands ( #313 )
...
In most cases, the sql.Result is not needed.
2020-01-22 22:43:45 +02:00
Ariel Mashraki
3425754c8e
dialect/sql/schema: scan multi-column indexes with their correct position ( #308 )
2020-01-22 04:43:01 -05:00
Ariel Mashraki
6bb834612c
dialect/sql/schema: drop unique constraint on pg migration
...
Fixes #235
2019-12-15 18:52:05 +02:00
Ariel Mashraki
db7b05ad04
dialect/sql/schema: postgres support for uuid type
...
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/178
Reviewed By: alexsn
Differential Revision: D18615561
fbshipit-source-id: 8244189186bf35d78cfdb991ee4f8cecd6411cee
2019-11-20 09:49:54 -08:00
Ariel Mashraki
d5c111b35a
dialect/sql/schema: univerdal id support for postgres
...
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/122
Reviewed By: alexsn
Differential Revision: D18113754
fbshipit-source-id: 1050f0c2b823db6ba1bc37c36f6749cfcffa982d
2019-10-24 08:45:09 -07:00
Ariel Mashraki
88bfbc38df
dialect/sql/schema: index builders per dialect
...
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/118
Reviewed By: alexsn
Differential Revision: D18092371
fbshipit-source-id: 02b85724b1e00d10c930112b9e2c8d07c8727216
2019-10-24 02:23:33 -07:00
Ariel Mashraki
c414cd9a82
dialect/sql/schema: alter column for postgres
...
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/117
Reviewed By: alexsn
Differential Revision: D18083914
fbshipit-source-id: a5f6993cfe9a260a84c0d4ab868e3e797b3a5776
2019-10-23 05:39:17 -07:00
Ariel Mashraki
2789257849
dialect/sql/schema: alter table for postgres
...
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/115
Reviewed By: alexsn
Differential Revision: D18065988
fbshipit-source-id: a7d33bbebd63b01659bc5ba562ac85642dcd3d83
2019-10-22 12:55:36 -07:00
Ariel Mashraki
8be31d18f9
dialect/sql/schema: add postgres table and column builders
...
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/114
Reviewed By: alexsn
Differential Revision: D18059082
fbshipit-source-id: fffec25143fa5f2a0ed2c79787abacefad724862
2019-10-22 08:17:05 -07:00
Ariel Mashraki
8e3a17550a
sql/dialect/schema: add sqltype for postgres
...
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/108
Reviewed By: alexsn
Differential Revision: D18032062
fbshipit-source-id: 04a1d65bf4bd6bb78d79f1312ea09cce25cbb901
2019-10-20 08:30:13 -07:00
Ariel Mashraki
5f4a55ea1e
sql/dialect/schema: load postgres table
...
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/107
Reviewed By: alexsn
Differential Revision: D18031837
fbshipit-source-id: 863f8db50a0547a7cb5e9ac560066fd6ee4e9c26
2019-10-20 05:20:16 -07:00
Ariel Mashraki
c3135d03a6
ent/dialect/sql/schema: set nullability of columns on scan
...
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/106
Reviewed By: alexsn
Differential Revision: D17987588
fbshipit-source-id: f5f985d28bdd7379826dca35111c61f1c169d5c0
2019-10-17 14:29:32 -07:00
Ariel Mashraki
0241a969b4
diaelct/sql/schema: postgres read columns
...
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/104
Reviewed By: alexsn
Differential Revision: D17980080
fbshipit-source-id: 341092a17798d008b91389263bf3bdc24b2571b2
2019-10-17 09:11:12 -07:00
Ariel Mashraki
2b6c8eada3
dialect/sql/schema: initial interface for postgres API
...
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/101
Reviewed By: alexsn
Differential Revision: D17977541
fbshipit-source-id: 118f935e11449661fd91f87b94dde2fb62c9b912
2019-10-17 05:50:49 -07:00