diff --git a/README.md b/README.md index eb975ad..63d8ddb 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,9 @@ This is a collection of short notes of the things I have learned on a daily basis while working on different technologies. I share these notes as I [learn in public](https://www.learninpublic.org/). -_**99** TILs and counting..._ +_**100** TILs and counting..._ +- 2023-07-20: [Git: push --force-with-lease](https://github.com/petermekhaeil/til/blob/master/./learnings/git-push-force-with-lease.md) - 2023-06-16: [ Automatically handle `updated_at` column](https://github.com/petermekhaeil/til/blob/master/./learnings/postgresql-moddatetime.md) - 2023-06-05: [How to Stop All Docker Containers](https://github.com/petermekhaeil/til/blob/master/./learnings/docker-stop-all.md) - 2023-05-04: [JavaScript: Tagged Template Literals](https://github.com/petermekhaeil/til/blob/master/./learnings/js-tagged-templates.md) diff --git a/feed.json b/feed.json index a271710..ff71fb5 100644 --- a/feed.json +++ b/feed.json @@ -1,4 +1,10 @@ [ + { + "content": "# Git: push --force-with-lease", + "date": "2023-07-20", + "path": "git-push-force-with-lease.md", + "title": "Git: push --force-with-lease" + }, { "content": " # Automatically handle `updated_at` column\n\n> **[moddatetime()](https://www.postgresql.org/docs/current/static/contrib-spi.html)** is a trigger that stores the current time into a timestamp field. This can be useful for tracking the last modification time of a particular row within a table.\n>\n> To use, create a BEFORE UPDATE trigger using this function. Specify a single trigger argument: the name of the column to be modified. The column must be of type timestamp or timestamp with time zone.\n\n ```sql\ncreate extension if not exists moddatetime schema extensions;\n\n-- assuming the table name is \"todos\", and a timestamp column \"updated_at\"\n-- this trigger will set the \"updated_at\" column to the current timestamp for every update\ncreate trigger handle_updated_at before update on todos\n for each row execute procedure moddatetime (updated_at);\n```", "date": "2023-06-16",