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
fabianlindfors
db36ba0c1b
Add Dockerfile
2021-12-28 16:44:52 +01:00
fabianlindfors
fda6dc8f40
Add support for generated constraints on columns
2021-12-28 16:01:11 +01:00
fabianlindfors
101a414e00
Improve README
2021-12-28 15:58:48 +01:00
fabianlindfors
1a28a4ffdf
Update installation instructions in README
2021-12-28 15:25:30 +01:00
fabianlindfors
cbb1834080
Add rename table action
2021-11-17 23:39:03 +01:00
fabianlindfors
d529a48637
Document remove_table action
2021-11-17 23:07:12 +01:00
fabianlindfors
f5049324c2
Document remove_column action
2021-11-11 23:31:17 +01:00
fabianlindfors
b728f0c642
Add flag for directories to look for migrations in
2021-11-11 21:43:44 +01:00
fabianlindfors
86f77f497c
Add generate-schema-query command
2021-11-11 20:47:07 +01:00
fabianlindfors
a04f94ff97
Add Postgres connection options to CLI
2021-11-11 20:36:37 +01:00
fabianlindfors
23034f2198
Add new migration for creating indices
2021-10-27 00:55:29 +02:00
fabianlindfors
0762a5025a
Add missing headings to README
2021-10-27 00:19:29 +02:00