Skip to content

Commit

Permalink
Deleted at changes
Browse files Browse the repository at this point in the history
  • Loading branch information
peteraba committed Dec 29, 2019
1 parent 7f7ca83 commit 09fe6e4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions resources/migrations/mysql/down/website-creative.sql
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
UPDATE block_layouts SET deleted = 1 WHERE identifier LIKE 'creative-%';
UPDATE block_layouts SET deleted_at = NOW() WHERE identifier LIKE 'creative-%';

UPDATE blocks SET deleted = 1 WHERE identifier LIKE 'creative-%';
UPDATE blocks SET deleted_at = NOW() WHERE identifier LIKE 'creative-%';

UPDATE page_layouts SET deleted = 1 WHERE identifier LIKE 'creative-%';
UPDATE page_layouts SET deleted_at = NOW() WHERE identifier LIKE 'creative-%';

UPDATE pages SET title = 'AbterCMS on Creative Bootstrap Theme', layout_id = NULL, layout = '<div class="container">{{var/body}}</div>', deleted = 0 WHERE identifier = 'index';
UPDATE pages SET title = 'AbterCMS on Creative Bootstrap Theme', layout_id = NULL, layout = '<div class="container">{{var/body}}</div>', deleted_at = NULL WHERE identifier = 'index';
14 changes: 7 additions & 7 deletions resources/migrations/mysql/up/website-creative.sql
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ VALUES ('b1a2b08f-b82e-4ef3-84aa-29f6fbb76007', 'service-container', ' <d
</div>
</div>');
UPDATE block_layouts
SET deleted = 0
SET deleted_at = NULL
WHERE identifier = 'service-container';


Expand Down Expand Up @@ -190,7 +190,7 @@ VALUES (UUID(), 'creative-service4', 'Made with Love', ' <p><i class=
<p class="text-muted mb-0">Is it really open source if it''s not made with love?</p>',
'b1a2b08f-b82e-4ef3-84aa-29f6fbb76007', '');
UPDATE blocks
SET deleted = 0
SET deleted_at = NULL
WHERE identifier LIKE 'creative-%';

INSERT IGNORE INTO page_layouts (id, identifier, body, header, footer, css_files, js_files)
Expand Down Expand Up @@ -289,13 +289,13 @@ VALUES ('3fc1212f-2189-4655-a11b-1a98dd897053', 'creative', ' <!-- Navigation -
</footer>', '', '', '', '');

UPDATE page_layouts
SET deleted = 0
SET deleted_at = NULL
WHERE identifier LIKE 'creative-%';


UPDATE pages
SET title = 'New AbterCMS installation',
layout_id = '3fc1212f-2189-4655-a11b-1a98dd897053',
layout = '',
deleted = 0
SET title = 'New AbterCMS installation',
layout_id = '3fc1212f-2189-4655-a11b-1a98dd897053',
layout = '',
deleted_at = NULL
WHERE identifier = 'index';

0 comments on commit 09fe6e4

Please sign in to comment.