question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Schema synchronization and migration

See original GitHub issue

Issue type:

[ ] question [x ] bug report [ ] feature request [ ] documentation issue

Database system/driver:

[ ] cordova [ ] mongodb [ ] mssql [ ] mysql / mariadb [ ] oracle [x ] postgres [ ] sqlite [ ] sqljs [ ] react-native

TypeORM version:

[x ] latest [ ] @next [ ] 0.x.x (or put your version here)

Steps to reproduce or a small repository showing the problem: Install typescript, ts-node, typeorm. Initialize project with cli using ts-node. Create some entites with relations one-to-one. After this use cli to synchronize database. After change synchronize database again. Then database reads tables and columns .After that operation cli want again create every table despite that there are exist tables like ex. users.

Error occurs even when try to run created migration.

Addition: My postgres database runs on docker container.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
pleerockcommented, Jun 4, 2018

so, if you remove “public” from your connection options then it works fine?

0reactions
imnotjamescommented, Oct 7, 2020

I’m gonna close this in favor of #6343

Read more comments on GitHub >

github_iconTop Results From Across the Web

DbSchema Schema Synchronization
This enables you to deploy the schema on multiple databases, generate migration scripts, etc. To ensure the schema is the same as in...
Read more >
Migrations Over Synchronize in TypeORM | by Uthpala Pitawela
Migrations Over Synchronize in TypeORM. TypeORM is an Object Relational Mapping technique which is used to connect object code to a relational database....
Read more >
Database Migrations: What are the Types of DB ... - Prisma
In this article, we'll go over what database schema migrations are, what problems they solve, and different implementation strategies.
Read more >
9.5 Schema Synchronization and Comparison
You can compare two live databases, two models, or models with live databases, to visually see the differences and optionally perform a synchronization...
Read more >
Synchronizing Database Schema (Migrations) - Cycle ORM
Cycle ORM provides multiple ways to automatically configure your database schema based on entity declarations. Automatic Synchronization.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found