fabianlindfors
0a3715fe74
Update order of actions complex column move example
2024-01-21 23:05:20 +01:00
fabianlindfors
c55b7ced5f
Update README with qualified column names in complex examples
2024-01-20 02:02:53 +01:00
fabianlindfors
9752b1ef3d
Add relationship cardinality change example
2023-11-22 23:20:48 +01:00
fabianlindfors
647ba2de5b
Add example of using up with create_table
2023-11-22 22:22:41 +01:00
fabianlindfors
42257be9cf
Add README section on cross-table migrations
2023-11-22 00:15:21 +01:00
fabianlindfors
4e5cc5c4ff
Add support for complex up function in
2023-11-22 00:04:45 +01:00
fabianlindfors
fc3b29d090
Fix incorrect example
2023-11-21 23:25:51 +01:00
fabianlindfors
9512c80de9
Add support for complex down function in
2023-11-21 23:22:20 +01:00
fabianlindfors
21266e227f
Add ReshapeDB callout to README
2023-11-07 00:41:47 +01:00
fabianlindfors
0df9f8b27e
Remove experimental note from README
2023-11-07 00:40:46 +01:00
fabianlindfors
d07ceb01eb
Reformat README
2023-11-07 00:40:20 +01:00
Leo Urbina
be035462f5
Add reference to Go helper library ( #26 )
...
Co-authored-by: Leo Urbina <me@leourbina.com>
2023-10-06 23:39:50 +02:00
April Schleck
afddfbff88
Fix syntax error in README ( #16 )
...
Co-authored-by: April Schleck <april@exclusivelyducks.com>
2022-10-02 22:03:12 +02:00
fabianlindfors
706a4505c4
Add link to Python helper library to README
2022-08-03 19:02:43 +02:00
April Schleck
b626ee119f
Fix incorrect example ( #14 )
...
Co-authored-by: April Schleck <april@exclusivelyducks.com>
2022-07-26 15:23:51 +02:00
fabianlindfors
8b6c817b30
Update README with details on Ruby helper library
2022-05-18 14:58:21 +02:00
fabianlindfors
df938fa4d4
Update docs and error messages with new CLI commands
2022-04-22 10:45:03 +02:00
fabianlindfors
88fca45c06
Add new custom
action
...
This action enables migrations to run custom SQL and is meant to be used
when no other actions fit. It doesn't provide any guarantees for
zero-downtime.
2022-04-21 23:42:41 +02:00
fabianlindfors
8a61a03ab8
Add note on the Rust helper library
2022-04-19 20:15:59 +02:00
fabianlindfors
4025b7d811
Remove duplicate word in README
2022-02-05 22:16:34 +01:00
fabianlindfors
72c42ba912
Remove extra backtick in README
2022-02-04 17:55:48 +01:00
fabianlindfors
7cc4f23db9
Fix changing nullability not working with alter_column
...
The existing test to set a column as NOT NULL didn't actually check that
the constraint was added, which has also been fixed. I also added a new
test for the opposite change, making a NOT NULL column nullable. The
README has also been updated with a new example for setting a column as
NOT NULL.
2022-02-04 17:47:39 +01:00
fabianlindfors
a07979a97a
Use .env file for environment variables
2022-02-03 23:57:02 +01:00
fabianlindfors
8129fdbf41
Add env var alternatives for all connection options
...
Also fixes a bug where the `--database` option would do nothing.
2022-02-03 23:48:59 +01:00
fabianlindfors
5529d224b6
Replace POSTGRES_URL env var with DB_URL
...
Also fixes the documentation which was incorrect before.
2022-02-03 23:27:44 +01:00
fabianlindfors
ef6fe64918
Fix incorrect minimum Rust version
2022-02-03 14:25:06 +01:00
fabianlindfors
8b2efd9624
Add minimum Rust version to Cargo.toml
2022-02-03 14:22:58 +01:00
fabianlindfors
3a4f0f7f9a
Remove autocompletion of first migration
...
For Reshape to work with an existing database, the first migration
shouldn't autocomplete as then there can't be a zero-downtime
deployment. The user should instead use `--complete` if they don't care
about zero-downtime, for example when setting up a dev or CI
environment. We should update the `--complete` flag to apply and
complete each migration one by one for efficiency.
2022-02-01 09:50:02 +01:00
fabianlindfors
4e93a39be0
Add remove_foreign_key action
2022-01-27 23:33:23 +01:00
fabianlindfors
5984c1c507
Fix typo in README
2022-01-25 22:26:03 +01:00
fabianlindfors
3a6c57c145
Add JSON extraction example to README
2022-01-25 22:14:47 +01:00
fabianlindfors
814620a215
Add new add_foreign_key action
2022-01-21 18:00:41 +01:00
fabianlindfors
4e0e112eb2
Safely remove indices when removing column
2022-01-20 19:31:21 +01:00
fabianlindfors
16f64181f0
Add new remove_enum
action
2022-01-19 23:14:43 +01:00
fabianlindfors
953be4d3eb
Add new create_enum action
2022-01-19 23:00:45 +01:00
fabianlindfors
b3766ba2b6
Add link to blog post to README
2022-01-16 23:24:29 +01:00
fabianlindfors
0e0c24b789
Adjust README introduction and disclaimer
...
Tones down the disclaimer a bit as I feel reasonable certain Reshape
won't lose any data. Also adds some details about locking and downtime
to the introduction.
2022-01-14 13:14:16 +01:00
fabianlindfors
353a5c22b1
Add option to set index type for add_index
2022-01-14 12:34:38 +01:00
fabianlindfors
dd90cac03a
Break out Index struct from add_index
...
This makes the format of `add_index` a bit more consistent with
`add_column` which has a nested definition for the column. This also
sets up for us to allow adding indices in `create_table`.
2022-01-14 11:53:31 +01:00
fabianlindfors
2a3fda7a90
Add option to create unique index with add_index
2022-01-14 11:44:12 +01:00
Barry Woolgar
b3ead8b2e2
Explain the new concept at the top of the README
...
This allows people new to the project to understand how Reshape works before getting into the technical detail of setting it up and using it (which they may or may not want to do just yet).
2022-01-13 10:36:25 +00:00
fabianlindfors
480bcf8af1
Add remove_index action
2022-01-12 01:12:08 +01:00
fabianlindfors
6f4a575c3c
Add support for changing default value with alter_column
...
Changing the default value only affects the new schema, the old schema
will still use the existing default value. This is to make sure a new
default value doesn't break the old application.
2022-01-10 22:45:00 +01:00
fabianlindfors
07774e87b6
Fix incorrect create_table examples
2022-01-06 16:54:35 +01:00
fabianlindfors
751c1975d7
Fix invalid example in README
2022-01-05 14:04:40 +01:00
fabianlindfors
bf75e00c29
Add release badge to README
2022-01-04 16:22:23 +01:00
fabianlindfors
98cd2751ca
Add cargo installation to README
2022-01-04 16:14:40 +01:00
fabianlindfors
bffb602e02
Add Postgres compatibility note to README
2022-01-03 13:38:22 +01:00
fabianlindfors
f34e2b88f2
Adjust README
2022-01-03 13:24:55 +01:00
fabianlindfors
b17d358ed1
Add license info to README
2022-01-01 17:27:23 +01:00