-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
imp: Autoload a modal to explain recent changes to the links
- Loading branch information
1 parent
6d2e7ad
commit 72fc440
Showing
10 changed files
with
172 additions
and
59 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
src/migrations/Migration202209220001SetAutoloadModalToShowcaseLink.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
namespace flusio\migrations; | ||
|
||
class Migration202209220001SetAutoloadModalToShowcaseLink | ||
{ | ||
public function migrate() | ||
{ | ||
$database = \Minz\Database::get(); | ||
|
||
$database->exec(<<<'SQL' | ||
UPDATE users SET autoload_modal = 'showcase link'; | ||
SQL); | ||
|
||
return true; | ||
} | ||
|
||
public function rollback() | ||
{ | ||
$database = \Minz\Database::get(); | ||
|
||
$database->exec(<<<'SQL' | ||
UPDATE users SET autoload_modal = ''; | ||
SQL); | ||
|
||
return true; | ||
} | ||
} |
Oops, something went wrong.