vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Poll.... (https://vborg.vbsupport.ru/showthread.php?t=74814)

nautiqeman 01-21-2005 02:44 PM

Poll....
 
Could I get a backup script of the poll table by any chance -- mine accidently was deleted :( .... idk what happened? Thanks in advance!!

Marco van Herwaarden 01-21-2005 03:00 PM

??

You want a script to recreate the poll table?
Or you want a script to restore from a database backup?

nautiqeman 01-21-2005 04:35 PM

no a script to recreate the poll table and any others that are associated with it -- THANKS!!!!

Marco van Herwaarden 01-21-2005 08:00 PM

Repair table in ACP

nautiqeman 01-21-2005 11:05 PM

I did that -- but it's still the new table -- it's like the poll table got overwritten -- I just need the script for the real table and any other ones that are supposed to go with it

Andreas 01-21-2005 11:30 PM

*confused*

What exactly do you want to do?
If the poll table is empty or does not exist, there is no way you can reconstruct its contents (except reloading a backup).

nautiqeman 01-21-2005 11:32 PM

Just an exported script of the poll table and any other ones that may be associated with it

I don't have the proper fields for the polls to work -- I get SQL errors everywhere

Andreas 01-21-2005 11:39 PM

Still not sure what you actually want to have, but

DROP TABLE IF EXISTS `poll`;
CREATE TABLE `poll` (
`pollid` int(10) unsigned NOT NULL auto_increment,
`question` varchar(100) NOT NULL default '',
`dateline` int(10) unsigned NOT NULL default '0',
`options` text NOT NULL,
`votes` text NOT NULL,
`active` smallint(6) NOT NULL default '1',
`numberoptions` smallint(5) unsigned NOT NULL default '0',
`timeout` smallint(5) unsigned NOT NULL default '0',
`multiple` smallint(5) unsigned NOT NULL default '0',
`voters` smallint(5) unsigned NOT NULL default '0',
`public` smallint(6) NOT NULL default '0',
`lastvote` int(10) unsigned NOT NULL default '0',
PRIMARY KEY (`pollid`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

DROP TABLE IF EXISTS `pollvote`;
CREATE TABLE `pollvote` (
`pollvoteid` int(10) unsigned NOT NULL auto_increment,
`pollid` int(10) unsigned NOT NULL default '0',
`userid` int(10) unsigned NOT NULL default '0',
`votedate` int(10) unsigned NOT NULL default '0',
`voteoption` int(10) unsigned NOT NULL default '0',
PRIMARY KEY (`pollvoteid`),
KEY `pollid` (`pollid`,`userid`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

Attention: If you have values in the tables they WILL be deleted if you execute this queries.

nautiqeman 01-22-2005 12:31 AM

thank you so much -- worked perfect!!!


All times are GMT. The time now is 05:01 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01081 seconds
  • Memory Usage 1,722KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete