~hime/aqua

d426581318867ad3d85e43086b540409adbf51c8 — Robbie Straw 7 years ago 59f19c9
(fix) add migration for is_orphan

This was a change made outside of diesel.

The aqua_csharp WPF GUI project has a utility (aqua_sister_agnes) which walks the entire content store
and then determines which database entries are not currently in the content store.

The diesel model was updated to reflect this change; but a corresponding migration was not added
mostly because I'm lazy.
A migrations/20170226144358_AddOrphanFlagToEntries/down.sql => migrations/20170226144358_AddOrphanFlagToEntries/down.sql +2 -0
@@ 0,0 1,2 @@
ALTER TABLE entries
DROP COLUMN is_orphan;

A migrations/20170226144358_AddOrphanFlagToEntries/up.sql => migrations/20170226144358_AddOrphanFlagToEntries/up.sql +3 -0
@@ 0,0 1,3 @@
SELECT * FROM ENTRIES WHERE 1 = 2;
ALTER TABLE entries
ADD COLUMN is_orphan boolean DEFAULT false;