Rename the unified application to dashboard
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
BEGIN;
|
||||
ALTER TABLE posts ADD COLUMN IF NOT EXISTS description text NOT NULL DEFAULT '';
|
||||
UPDATE posts p SET description=left(COALESCE((
|
||||
SELECT a.body FROM post_assets pa JOIN assets a ON a.id=pa.asset_id
|
||||
WHERE pa.post_id=p.id AND a.kind='text' AND a.body IS NOT NULL
|
||||
ORDER BY pa.position LIMIT 1
|
||||
),p.title),200) WHERE p.description='';
|
||||
INSERT INTO schema_migrations(version) VALUES('003_note_descriptions') ON CONFLICT DO NOTHING;
|
||||
COMMIT;
|
||||
Reference in New Issue
Block a user