twenty/packages/twenty-server
Thomas Trompette 651af1c0e1
Use migrations for remote tables (#4877)
Foreign tables should be created using migrations, as we do for standard
tables.
Since those are not really generated from the object metadata but from
the remote table, those migrations won't live in the object metadata
service.

This PR:
- creates new types of migration : create_foreign_table and
drop_foreign_table
- triggers those migrations rather than raw queries directly
- moves the logic to fetch current foreign tables into the remote table
service since this is not directly linked to postgres data wrapper
- adds logic to unsync all tables before deleting

---------

Co-authored-by: Thomas Trompette <thomast@twenty.com>
2024-04-08 18:21:29 +02:00
..
@types feat: schema version header check (#4563) 2024-04-04 09:52:45 +02:00
patches feat: wip server folder structure (#4573) 2024-03-20 16:23:46 +01:00
scripts Fix environment variable casting (#4855) 2024-04-05 18:15:47 +02:00
src Use migrations for remote tables (#4877) 2024-04-08 18:21:29 +02:00
test feat: refactor folder structure (#4498) 2024-03-15 14:40:58 +01:00
.env.example 4743 use auth google apis callback url instead of messaging provider gmail callback url (#4838) 2024-04-08 14:56:12 +02:00
.env.test File token chores (#4664) 2024-03-26 13:42:09 +01:00
.eslintrc.js Migrate to a monorepo structure (#2909) 2023-12-10 18:10:54 +01:00
.gitignore feat: workspace:health nullable fix (#3882) 2024-02-08 18:22:29 +01:00
.prettierignore Migrate to a monorepo structure (#2909) 2023-12-10 18:10:54 +01:00
.prettierrc Migrate to a monorepo structure (#2909) 2023-12-10 18:10:54 +01:00
jest.config.ts Refactor backend folder structure (#4505) 2024-03-15 18:37:09 +01:00
nest-cli.json Migrate to a monorepo structure (#2909) 2023-12-10 18:10:54 +01:00
package.json Release 0.4.0 (#4856) 2024-04-05 18:35:48 +02:00
project.json Update yarn commands (#4644) 2024-03-25 12:31:18 +01:00
tsconfig.build.json chore: set up twenty-emails config so build isn't needed in development (#3619) 2024-01-29 06:17:12 -03:00
tsconfig.json 4586 fix workspace member feature (#4680) 2024-03-28 17:59:48 +01:00