Created
April 30, 2025 18:01
-
-
Save rickalday/2d935fb46724e69dc53a389d552b0257 to your computer and use it in GitHub Desktop.
SQL command to create GivWP Campaigns table.
This file contains hidden or 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
CREATE TABLE wp_give_campaigns ( | |
id INT UNSIGNED NOT NULL AUTO_INCREMENT, | |
campaign_page_id INT UNSIGNED NULL, | |
form_id INT NOT NULL, | |
campaign_type VARCHAR(12) NOT NULL DEFAULT '', | |
campaign_title TEXT NOT NULL, | |
campaign_url TEXT NOT NULL, | |
short_desc TEXT NOT NULL, | |
long_desc TEXT NOT NULL, | |
campaign_logo TEXT NOT NULL, | |
campaign_image TEXT NOT NULL, | |
primary_color VARCHAR(7) NOT NULL, | |
secondary_color VARCHAR(7) NOT NULL, | |
campaign_goal INT UNSIGNED NOT NULL, | |
goal_type VARCHAR(24) NOT NULL DEFAULT 'amount', | |
status VARCHAR(12) NOT NULL, | |
start_date DATETIME NULL, | |
end_date DATETIME NULL, | |
date_created DATETIME NOT NULL, | |
PRIMARY KEY (id) | |
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment