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
- Full database dumps [`migrations/testdata/full_dumps`](./coderd/database/migrations/testdata/full_dumps)
102
+
103
+
Both types behave like database migrations (they also [`migrate`](https://github.com/golang-migrate/migrate)). Their behavior mirrors Coder migrations such that when migration
104
+
number `000022` is applied, fixture `000022` is applied afterwards.
105
+
106
+
Partial fixtures are used to conveniently add data to newly created tables so
107
+
that we can ensure that this data is migrated without issue.
108
+
109
+
Full database dumps are for testing the migration of fully-fledged Coder
110
+
deployments. These are usually done for a specific version of Coder and are
111
+
often fixed in time. A full database dump may be necessary when testing the
112
+
migration of multiple features or complex configurations.
113
+
114
+
To add a new partial fixture, run the following command:
115
+
116
+
```console
117
+
$ ./coderd/database/migrations/create_fixture.sh my fixture
0 commit comments