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.

How to update comments of existing migration script?

See original GitHub issue

When I tried to update the comments of existing migration script, I will get the hash not match error, so I wondering if there’s a way to just generate hash from significant character without including comments?

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
ThomWrightcommented, Sep 10, 2021

If you have a file e.g. 001_my-migration.sql then you can create another file 001_my-migration.md and put any docs in there. This file is mutable, and ignored by the library.

0reactions
ThomWrightcommented, Sep 15, 2021

If that works for you then great 🙂

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to edit previously applied migration without adding ...
Apply the patch you created on step 1. Recreate Migration2 - Add-Migration Migration2 (it will now contain exactly the changes you want) Copy...
Read more >
Upgrading from old versions of migration scripts - SQL Source ...
In the SQL Source Control window, go to the Commit tab. Using the checkboxes, select all existing migration scripts. Enter a comment for...
Read more >
Code First Migrations with an existing database - EF6
Run the Add-Migration InitialCreate command in Package Manager Console. · Comment out all code in the Up method of the newly created migration....
Read more >
Migration to Add Comment to Existing Column - Laracasts
I have a column as tinyInteger. Now I would like to add comment to the column with new migration file. public function up()...
Read more >
EF Migrations Command Reference | Passion for Coding
Add-Migration: Scaffolds a migration script for any pending model changes. Update-Database: Applies any pending migrations to the database.
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