Giter VIP home page Giter VIP logo

social-network's Introduction

Migration from Social Network 2 to Social Network 3:

  1. Create new schema 'social_network_3';

  2. Run data.sql script for PostCondition and OrderStatus

  3. Copy PhoneBrand and later PhoneModel from social_network_2

  4. Copy Pincode, District, State. http://localhost:8080/load/hashtags/pincodes

  5. Initialize all Hashtags. localhost:8080/load/hashtags/init

  6. Initialize all mydukan User to Subscribed users. http://localhost:8080/user/init/existing

  7. Move Posts from social_network_2 to social_network_3. INSERT INTO social_network_3.Post(id, body, commentCount, createDate, imageUrl, isFriendsOnlyPost, isLiked, isPublicPost, isReported, likeCount, modifyDate, postExpiryDate, reportAbuseCount, title, uniqueHandle, viewCount, postCondition_id, user_id, promotionFactor) SELECT id, body, commentCount, createDate, imageUrl, isFriendsOnlyPost, isLiked, isPublicPost, isReported, likeCount, modifyDate, postExpiryDate, reportAbuseCount, title, uniqueHandle, viewCount, postCondition_id, user_id, 0 from social_network_2_aug_15.post;

  8. Move Post Likes

SELECT social_network_3.SubscribedUser.id FROM social_network_3.SubscribedUser UNION ALL SELECT social_network_2_aug_15.postlike.user_id FROM social_network_2_aug_15.postlike

SELECT user_id FROM ( SELECT social_network_2_aug_15.postlike.user_id FROM social_network_2_aug_15.postlike UNION ALL SELECT social_network_3.SubscribedUser.id FROM social_network_3.SubscribedUser ) t GROUP BY user_id HAVING COUNT(*) = 1 ORDER BY user_id;

social-network's People

Contributors

bharadwaj avatar ramshan001 avatar sagaranand015 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.