mirror of
https://github.com/ellite/Wallos.git
synced 2025-12-23 23:18:07 -05:00
9 lines
378 B
PHP
9 lines
378 B
PHP
<?php
|
|
// This migration adds a "cancellation_date" column to the subscriptions table.
|
|
|
|
$columnQuery = $db->query("SELECT * FROM pragma_table_info('subscriptions') where name='cancellation_date'");
|
|
$columnRequired = $columnQuery->fetchArray(SQLITE3_ASSOC) === false;
|
|
|
|
if ($columnRequired) {
|
|
$db->exec('ALTER TABLE subscriptions ADD COLUMN cancellation_date DATE;');
|
|
} |