Hacker Newsnew | past | comments | ask | show | jobs | submit | albertoperdomo's commentslogin

Hello @zookatron,

I'm with the product team at Prisma, currently focusing on migrations.

Your point is valid, hence delivering a production-ready solution for migrations is one of our top priorities.

However, as my colleague @nikolasburk shared above, you can use a third-party migration system (knex, node-pg-migrate, e al) with Prisma and still get all the benefits of Prisma Client.

Prisma is designed to be more powerful if you are using the entire toolkit, but we also want to make it easy to use just specific tools within the kit, if that is what works well for your project.

Feel free to follow along or check us out again in a few months and hopefully by then our migration system will no longer be any kind of friction point. :)


Hello @hn_reddit_human,

I'm with the product team at Prisma, currently focusing on migrations.

You are right about the fact that declarative migrations introduces some design challenges that can be hard to solve. In the current version of Prisma Migrate, changes to the declarative schema file are translated to auto-generate incremental migration files.

We have a few ideas for how we can improve our system to better deal with these challenges. Please feel free to follow along or check back in a few months if you are interested in how we solve (or not?) these problems! :)


Hello @joshring,

I'm with the product team at Prisma, currently focusing on migrations.

>Prisma is great if you plan on never maintaining past your MVP, so I guess it makes sense that startups use it and get stuff out the door quickly

We want Prisma to help developers get stuff out the door faster but our ultimate goal is to support developers throughout the entire application lifecycle.

We are working on improving Migrate and hope to deliver improvements over the next few months that hopefully can help you change your mind about our toolkit. :)


Hello @jasonhero,

I'm with the Product team at Prisma, currently focusing on migrations.

We are currently working on improving Prisma Migrate to unblock some of the use cases you have suggested. While I am not sure our first production-ready version of Migrate will address all of the short comings you've listed, we think we'll able to solve the most important ones.

I encourage you to check out the new improvements I am sure we'll be releasing during the course of Q3.

If you have time, I'd love to do a call with you and dive deeper into these topics! You can find me on the community Slack for Prisma under the same username.


I’m with the Product team at Prisma. Prisma Migrate (experimental) generates migrations from changes to the Prisma schema. These migrations use an internal DSL that ends up translating to SQL commands for relational DBs. Can you please elaborate a bit more on what you’d expect as a higher-level migration API?


I'm with the product team at Prisma.

Prisma Migrate is different from ActiveRecord migrations (which are very familiar with) because the DB schema is state-based. The Prisma schema file acts as source of truth and the DB schema will be migrated to match it.

Can you elaborate on what you would perceive as reaching the level of Django/ActiveRecord? I'd be interesting in specific aspects/items.


That sounds great! I'm not super familiar with ActiveRecord, but I use Django migrations regularly. For me the things that stand out are

1. a declarative model - ie. defining the db schema rather than the migrations

2. auto generated migrations with the ability to customize

3. integration with tools for deployment and testing

You probably have a much better idea of the landscape, but reach out to Andrew Godwin [1], he wrote south and then rewrote it to become django migrations.

[1] - https://www.aeracode.org/


Hey, this is interesting. Does it rely on Neo4j server or embedded?

I'm the founder of GrapheneDB, a managed hosting service for Neo4j databases. I'm interested in knowing if our service would be compatible with your framework.


I just tried GrapheneDB but got an error, can you help:

http://testdb.sb02.stations.graphenedb.com:24789/

Network Error (tcp_error)

A communication error occurred: "Connection refused" The Web Server may be down, too busy, or experiencing other problems preventing it from responding to requests. You may wish to try again at a later time.

For assistance, contact your network support team.


Thanks for trying it out!

Sorry, I've been taking a few days off and have had very limited internet access. Would you please open a support ticket so that we can help you figure out what's happening with your connection?


I figured it out, it is a firewall issue. Can it work over port 80, as most European companies block other ports


Not at this time, I'm afraid.


Ok, no worries. I'll try to find another solution then. Thanks anyway


It works with Neo4j server only. Unfortunately embedded is not supported. I'll check out GrapheneDB in more depth to see if it would be compatible


You can live in Spain for example and work and generate revenue and pay taxes within you country of origin. I think the criteria is you're officially living and working where you spend more than 50% of the year.

So I know people that spend less than 50% in a different country, and making revenue and paying taxes within their country, legally.


If you don't care much about a startup and tech scene (there is little) you can spend a nice time in the Canary Islands, Spain.

It's not the cheapest place in Europe, you'll find cheaper locations in Eastern Europe admittedly. Still, you can find a nice 1BR appartment for €400-500/mo in Las Palmas City near the beach or share an appartment for somewhere around €200/mo for a room.

The weather is really really nice throughout the whole year with lots of sun and there's no real winter. Temp. in the city during the winter can be approx. 18º Celsius. The summers are not extremely hot, rather nice temperatures around 25º.

There's some co-working places where you can get a desk for €100/mo (half days) or €150/mo (full days).

There's a lot of activities that you can do almost throughout the entire year: surfing, boadyboarding, scuba diving, swimming, biking, hiking, climbing and any other outdoor activity.

There's plenty of bars and clubs and the nightlife is very lively.

Please leave a comment if you want to know more.


BTW, I was born and raised here. I spent 8 years living in Germany and 1 year living in Ireland. Afterwards I decided to move back here 8 years ago and don't have regrets. ;)


Sounds great, I would certainly like to hear more about it. Could you drop me a line via the email in my profile please?


How is the internet connection there ? Reliable ?


In the city you can get fiber in some places, 100Mbit. In other places mostly 10Mbit. I live outside of town and got 3Mbit, which is on the low end. Usually very reliable.


What do you think about raising kids there?


Well, I have no kids, but some of my friends.

Child care or kindergarten is pretty affordable, around €300/mo. If you're a legal citizen (e.g. European or w/ work permit) public schools are free, you just pay for the food, which is around €50/mo, buy materials and uniform.

If you want to pay special attention to their education regarding foreign languages and having higher chances to move elsewhere after school or at some point during school age, there are British, American, German and French schools. All of them are private or semi-private and cost up to €500/mo.

If you're considering moving here in the mid/long term, the biggest issue is work. The job market here very bad at the moment, with really high rates of unemployment.

You shouldn't care about this if you're able to work/freelance remotely. In this case, working for UK/Germany/Northern Europe/USA clients will leave margins better than any job you'll find locally and you'll be able to make a good living.

I run a company employing 8 people in total (incl. founders) and we have clients from Spain, Germany, USA. We've been doing this for 8 years.

If you or your partner are looking for a job in the local market, the biggest areas are tourism (many million visitors / year) but you can also make a good living teaching English lessons if you're native and stuff like that.


I have a 5 y.o. and wouldn't move from Tenerife (South). Private college costs ~400EUR/mo, health insurance is cheap and crime is super-low.

Oh, my kid speaks Russian and Spanish natively and they teach German and English in school. Will best me by 1 language when out of high school.


Nice to see people I know in this thread, Joel. We should meet in person at some point! ;)


I'm bound to hit the Cuban consulate at some point ;).


Just a heads up: I just tried to signup for the newsletter and got a nasty Rails error page (500). It turns out Iwas browsing with JS turned off (using NoScript). It worked fine after activating JS.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: