How to update comments of existing migration script?
See original GitHub issueWhen 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:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
If you have a file e.g.
001_my-migration.sql
then you can create another file001_my-migration.md
and put any docs in there. This file is mutable, and ignored by the library.If that works for you then great 🙂