Comments (2)
Hi @barbalex,
I did not find the time to look deep into this issue, but from your description this looks like a Prisma issue.
Your files
table defines foreign keys to accounts, projects, actions, etc. Therefore, Prisma will define a relation field from that other table to files
. If there is only a single relation from that other table to files
, i believe it will use the name of that other table (i.e. files
) as the name of the relation field. Now, in your case, this leads to a name clash because the table actions
already has a column named files
.
If you open .electric_migrations_tmp_a8tY7C/prisma/schema.prisma
you will probably see that the generate Prisma schema has two fields named files
on the accounts
model, one that represents the boolean files
column you defined in your Postgres schema, and one that represents the reverse FK relation with the files
table.
I'd suggest renaming either the files
table or the files
column on the action
table to avoid this name clash.
from electric.
You are 100% right, it seems. Thanks a lot!
I now renamed the fields. The shema builds so I suppose that was correct.
I do get a different issue now though: #750
from electric.
Related Issues (20)
- Invalid Project Name error on starting postgres service HOT 3
- cannot start electric after a wipe HOT 5
- [Question] Local-only records? HOT 1
- Unexpected encoding of a boolean value in a table referenced by an FK HOT 2
- Composite keys with different types (UUID + TEXT) throws error when electrifying HOT 1
- The server sends and the client stores incorrect `observed_transaction_data` HOT 2
- [`examples/tauri-postgres`] Where is `tauri_init_command` called? HOT 1
- Geo data support HOT 4
- pglite migrations created against a supabase database are invalid HOT 1
- pg-migration.ts index creation fails HOT 1
- Generated client Postgres migrations incorrectly split HOT 1
- Upgrade electricsql from 0.10.1 to 0.11.1, can't connect to electric proxy service HOT 2
- Non-atomic transactions with intermediate reads are common HOT 3
- npm ERR! Cannot read properties of null (reading 'matches') HOT 3
- Improve client generation failure messages at the client level HOT 1
- Delayed/Failure to read your writes, lost writes are common HOT 4
- when select where item contains in json array, array_constiains key not recognize, how to filter if json type constains element HOT 2
- Can't load data when phone is offline in Expo app HOT 5
- [BUG] Syntax error CREATE_REPLICATION_SLOT when install electric-sql with docker HOT 4
- MODULE ERROR: Electric.Replication.PostgresConnector HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from electric.