Executable that will resequence ids in all tables of a postgres database built with .netcore 8.0 Cross Platform Compatible
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

DBResequencer.md 781 B

123456789101112131415161718192021
  1. # Postgres Database ID Resequencer
  2. resequence_pgsql is a command line utility to resequence ID's from the last id entered so you are not violating primary key constraints in the database after initial seed data or migrated data is inserted into the database. This is for Postgres only through an ssh connection.
  3. ## Installation
  4. resequence_pgsql requires [dotnetcore](https://dotnet.microsoft.com/en-us/download/dotnet/8.0) v8.0+ to run.
  5. Download the Project
  6. ```sh
  7. git clone https://cvs.prelub.com/mcarman/resequenced_pgsql.git
  8. ```
  9. For production environments...
  10. ```sh
  11. dotnet publish -c Release -r <RID> --output <output directory> resequence_pgsql.sln
  12. ```
  13. List of [RID's](https://learn.microsoft.com/en-us/dotnet/core/rid-catalog) can be found here.