Jump to content


Deleted Entire Database [April fools day joke]

deleted database

  • Please log in to reply
7 replies to this topic

#1 KaBaDaBrA

KaBaDaBrA

    grocery CRUD magician

  • Members
  • PipPipPip
  • 57 posts

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:
Grocery CRUD - Categories and Subcategories - Demo and Step by Step here: http://demo.edynamic..._management/add

#2 web-johnny

web-johnny

    grocery CRUD Author

  • Administrators
  • 1,150 posts
  • LocationLondon

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.
Posted Image

#3 KaBaDaBrA

KaBaDaBrA

    grocery CRUD magician

  • Members
  • PipPipPip
  • 57 posts

Posted 01 April 2012 - 09:42 AM

Posted Image

Mehehehehe!!!! :D
Grocery CRUD - Categories and Subcategories - Demo and Step by Step here: http://demo.edynamic..._management/add

#4 web-johnny

web-johnny

    grocery CRUD Author

  • Administrators
  • 1,150 posts
  • LocationLondon

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/s...39e8d1a136532f7

That was a good one :)
Posted Image

#5 KaBaDaBrA

KaBaDaBrA

    grocery CRUD magician

  • Members
  • PipPipPip
  • 57 posts

Posted 01 April 2012 - 09:52 AM

hahahaha sorry man!! Just had to :D got ya goooood!!
Grocery CRUD - Categories and Subcategories - Demo and Step by Step here: http://demo.edynamic..._management/add

#6 noskov

noskov

    grocery CRUD Guru

  • Advanced Member
  • PipPipPip
  • 175 posts
  • LocationKiev

Posted 02 April 2012 - 06:05 AM

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

#7 lurker

lurker

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 19 April 2012 - 02: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.)

#8 web-johnny

web-johnny

    grocery CRUD Author

  • Administrators
  • 1,150 posts
  • LocationLondon

Posted 19 April 2012 - 05: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.
Posted Image





Also tagged with one or more of these keywords: deleted, database

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users