We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2b41c3c + fa575b3 commit e8066f0Copy full SHA for e8066f0
3 files changed
Plugin.php
@@ -240,7 +240,7 @@ public static function personalConfig(\Typecho\Widget\Helper\Form $form)
240
public static function dbInstall()
241
{
242
$installDb = Db::get();
243
- $type = array_pop(explode('_', $installDb->getAdapterName())); //数据库类型 mysql/sqlite
+ $type = array_pop(explode('_', $installDb->getAdapterName())); //数据库类型 mysql/sqlite/postgres
244
$prefix = $installDb->getPrefix(); //表前缀
245
246
$scripts = file_get_contents(__DIR__ . '/sql/' . $type . '.sql');
log/.gitkeep
sql/Pgsql.sql
@@ -0,0 +1,5 @@
1
+CREATE TABLE IF NOT EXISTS typecho_mail (
2
+ id SERIAL PRIMARY KEY,
3
+ content text NOT NULL,
4
+ sent int DEFAULT 0
5
+);
0 commit comments