⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Deleted Entire Database [April fools day joke]



KaBaDaBrA
  • profile picture
  • Member

Posted 01 April 2012 - 09:28 AM

Hi,

I've been using GCRUD for a while now - this morning tried to delete one item and deleted all my info in my database in every single table!!!!!!!! :wacko:

What can I do to fix it!!??!!?? :blink:

web-johnny
  • profile picture
  • Administrator
  • 1,166 posts

Posted 01 April 2012 - 09:40 AM

OW MY GOD, really?! This really ... SUCKS. What happens? Please tell me that it was not online!!! Can you be more specific about your problem? When did this happens? It was just one delete? one record? last record?
I cannot help you if you don't tell me a hint.

You are the first person that mention such a problem so it is important to know WHERE the problem was, because it is a serious problem.

KaBaDaBrA
  • profile picture
  • Member

Posted 01 April 2012 - 09:42 AM

[img]http://www.allfacebook.com/wordpress/wp-content/uploads/2011/03/april-fools-icon.jpg[/img]

Mehehehehe!!!! :D

web-johnny
  • profile picture
  • Administrator
  • 1,166 posts

Posted 01 April 2012 - 09:51 AM

You got me man! You really got me! I was ready to have an express release for this situation!!!

I make also a commit (a limit 1) for this just to make sure that will never happens :P : https://github.com/scoumbourdis/grocery-crud/commit/33403e493933ab4fc50d8358039e8d1a136532f7

That was a good one :)

KaBaDaBrA
  • profile picture
  • Member

Posted 01 April 2012 - 09:52 AM

hahahaha sorry man!! Just had to :D got ya goooood!!

noskov.biz
  • profile picture
  • Member

Posted 02 April 2012 - 06:05 AM

I don't remember when I laughed soooo muuuuch :lol: It's just wonderfull!

lurker
  • profile picture
  • Member

Posted 19 April 2012 - 14:30 PM

Firstly, thanks to web-johnny for the software.

I just thought I'd mention that this "limit 1 April Fools safety fix" further breaks MS SQL Server support, so you might want to revert it :).

(Obviously I know that you don't really support MS-SQL or postgresql officially, but it's pretty easy to get working on MS-SQL at least with a minor change to grocery_crud_model and the codeigniter mssql driver, as posted elsewhere on these forums. This limit fix though also breaks 'delete' functionality on MS-SQL servers once you've jumped through those hoops.)

web-johnny
  • profile picture
  • Administrator
  • 1,166 posts

Posted 19 April 2012 - 17:56 PM

Actually I didn't know that. So I will just have it in mind in case I want to fix multiple drivers for MS-SQL and/or Postresql , however I will not revert it as this the right thing to do because grocery CRUD delete's with the primary key so we need to have the limit one there.

Thank you to mention it as it is really helpful for me if I want to support other databases.