From 282c8e201b8556c3ed5c986cf9a3608e97840c21 Mon Sep 17 00:00:00 2001 From: rpm-mcarman <65228808+rpm-mcarman@users.noreply.github.com> Date: Fri, 19 Apr 2024 11:44:41 -0400 Subject: [PATCH] Added markdown file --- DBResequencer.md | 21 +++++++++++++++++++ .../net8.0/resequence_pgsql.AssemblyInfo.cs | 2 +- .../resequence_pgsql.AssemblyInfoInputs.cache | 2 +- 3 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 DBResequencer.md diff --git a/DBResequencer.md b/DBResequencer.md new file mode 100644 index 0000000..84c6b83 --- /dev/null +++ b/DBResequencer.md @@ -0,0 +1,21 @@ +# Postgres Database ID Resequencer + + +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. + +## Installation + +resequence_pgsql requires [dotnetcore](https://dotnet.microsoft.com/en-us/download/dotnet/8.0) v8.0+ to run. + +Download the Project + +```sh +git clone https://cvs.prelub.com/mcarman/resequenced_pgsql.git +``` + +For production environments... + +```sh +dotnet publish -c Release -r --output resequence_pgsql.sln +``` +List of [RID's](https://learn.microsoft.com/en-us/dotnet/core/rid-catalog) can be found here. diff --git a/obj/Debug/net8.0/resequence_pgsql.AssemblyInfo.cs b/obj/Debug/net8.0/resequence_pgsql.AssemblyInfo.cs index a7e2350..5ddcfb8 100644 --- a/obj/Debug/net8.0/resequence_pgsql.AssemblyInfo.cs +++ b/obj/Debug/net8.0/resequence_pgsql.AssemblyInfo.cs @@ -13,7 +13,7 @@ using System.Reflection; [assembly: System.Reflection.AssemblyCompanyAttribute("resequence_pgsql")] [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] -[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+c40cf0adf2cfeb27f48047c7254220361fca8865")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+7146d6e391e6633262eb22da4a9d338236acd0e4")] [assembly: System.Reflection.AssemblyProductAttribute("resequence_pgsql")] [assembly: System.Reflection.AssemblyTitleAttribute("resequence_pgsql")] [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] diff --git a/obj/Debug/net8.0/resequence_pgsql.AssemblyInfoInputs.cache b/obj/Debug/net8.0/resequence_pgsql.AssemblyInfoInputs.cache index c362a04..beba697 100644 --- a/obj/Debug/net8.0/resequence_pgsql.AssemblyInfoInputs.cache +++ b/obj/Debug/net8.0/resequence_pgsql.AssemblyInfoInputs.cache @@ -1 +1 @@ -9a0eee66f79ddaec6eea97d73cbde0fc6c67f5fb70d57715f248d7d679ceaffa +7a8dbe0a7d5a5a3c774a88bf1cb37bf7efa46b9b51d0c3c51244dd0c58c553ae