forked from emoncms/emoncms
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Setup, update and check the database from the admin panel
- Loading branch information
Trystan
committed
Oct 24, 2012
1 parent
67dc535
commit 3b1c56e
Showing
8 changed files
with
71 additions
and
32 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -6,3 +6,4 @@ Modules/auto | |
Modules/energyform | ||
Modules/energydata | ||
Modules/energygroup | ||
Modules/raspberrypi |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<h2>Database setup, update and status check</h2> | ||
<p>This page display's the output of the database setup and update process which checks the database requirements of each module installed and enter's any new table's or fields if required.</p> | ||
<p>If all the item statuses below show ok that means your database is setup correctly.</p> | ||
<br> | ||
|
||
<table class="catlist" > | ||
<tr><th>Schema item</th><th>Name</th><th>Status</th></tr> | ||
<?php $i=0; foreach ($out as $line) { $i++; ?> | ||
|
||
<?php if ($line[0]=='Table') { ?> | ||
|
||
<tr class="d<?php echo ($i & 1); ?>" ><th><?php echo $line[0]; ?></th><th><?php echo $line[1]; ?></th><th><?php echo $line[2]; ?></th></tr> | ||
|
||
<?php } ?> | ||
|
||
<?php if ($line[0]=='field') { ?> | ||
|
||
<tr class="d<?php echo ($i & 1); ?>" ><td><i><?php echo $line[0]; ?></i></td><td><i><?php echo $line[1]; ?></i></td><td><i><?php echo $line[2]; ?></i></td></tr> | ||
|
||
<?php } ?> | ||
|
||
<?php } ?> | ||
</table> |
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,16 @@ | ||
<?php global $path; ?> | ||
<h2>Admin</h2> | ||
|
||
<table class="table table-striped "> | ||
<tr> | ||
<td> | ||
<h3>Update database</h3> | ||
<p>Run this after updating emoncms, after installing a new module or to check emoncms database status.</p> | ||
</td> | ||
<td> | ||
<br> | ||
<a href="<?php echo $path; ?>admin/db" class="btn btn-info"><?php echo _('Update & check'); ?></a> | ||
</td> | ||
</tr> | ||
</table> | ||
|
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
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